473,396 Members | 1,895 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Emacs/psgml/xxml crawling

I've been using Emacs to edit SGML and XML since Len wrote psgml. For
the last decade (almost) I've been using xxml-mode as well for the nice
indenting and colorization. It's been absolutely fine, on half a dozen
flavors of Un*x, Widnows, and MAC OSs.

I installed my standard .emacs and assorted .els on a new laptop with a
fresh install of Ubuntu Gutsy a few months ago, all fine. I just
installed the identical OS from the same CD on a DELL Dimension 4550
desktop, updated from the same repos, and added the identical .emacs and
..els.

When I opened an XML document it started to parse the DTD, element 1
(long pause) element 6 (longer pause) element 10 (etc). it took 15 min
to parse the standard DocBook 4.4, which the laptop (and every other
machine I use, about a dozen, assorted) whizzes through in 1-2 secs.

Obviously there's something different, but it's not the .emacs or the
..els, which I copied from my own archive; and it wasn't the CD, which
was the same one. I've check file sizes and there are no differences
which might have indicated corruption.

It could have been whatever packages got updated when the OS install
completed, but they'd have been fractionally different anyway because of
the different platform. I'm slightly unwilling to believe that this is
down at the OS level given that the 4550 is behaving normally for all
other apps -- only Emacs parsing a DTD is running at 1/100 normal speed,
everything else, including the rest of Emacs, and (apparently) the rest
of psgml, runs normally.

Has anyone ever encountered this before, or got suggestions as to where
to start looking?

///Peter
Jul 18 '08 #1
3 1491
Check your paths, to make sure the Emacs you're executing is the one you
think you're executing?

If you're getting different results, odds are you're not running the
same code.
Jul 19 '08 #2
Peter Flynn escribió:
I've been using Emacs to edit SGML and XML since Len wrote psgml. For
the last decade (almost) I've been using xxml-mode as well for the nice
indenting and colorization. It's been absolutely fine, on half a dozen
flavors of Un*x, Widnows, and MAC OSs.

I installed my standard .emacs and assorted .els on a new laptop with a
fresh install of Ubuntu Gutsy a few months ago, all fine. I just
installed the identical OS from the same CD on a DELL Dimension 4550
desktop, updated from the same repos, and added the identical .emacs and
.els.

When I opened an XML document it started to parse the DTD, element 1
(long pause) element 6 (longer pause) element 10 (etc). it took 15 min
to parse the standard DocBook 4.4, which the laptop (and every other
machine I use, about a dozen, assorted) whizzes through in 1-2 secs.

Obviously there's something different, but it's not the .emacs or the
.els, which I copied from my own archive; and it wasn't the CD, which
was the same one. I've check file sizes and there are no differences
which might have indicated corruption.

It could have been whatever packages got updated when the OS install
completed, but they'd have been fractionally different anyway because of
the different platform. I'm slightly unwilling to believe that this is
down at the OS level given that the 4550 is behaving normally for all
other apps -- only Emacs parsing a DTD is running at 1/100 normal speed,
everything else, including the rest of Emacs, and (apparently) the rest
of psgml, runs normally.

Has anyone ever encountered this before, or got suggestions as to where
to start looking?
This symptom usually shows up when the DTD if fetched from Internet,
instead of using a local copy. Have you set up an appropriate catalog on
your laptop?

--
Manuel Collado - http://lml.ls.fi.upm.es/~mcollado
Jul 19 '08 #3
Manuel Collado wrote:
Peter Flynn escribió:
[snip]
This symptom usually shows up when the DTD if fetched from Internet,
instead of using a local copy. Have you set up an appropriate catalog on
your laptop?
I should have added this...yes, it's my standard catalog, on all
platforms, and the symptoms persist when the machine is disconnected, so
it's not affected by Internet retrieval.
Joseph J. Kesselman wrote:
Check your paths, to make sure the Emacs you're executing is the one
you think you're executing?
Good point. I'll check.
If you're getting different results, odds are you're not running the
same code.
I'm damn sure it's not the same code.
Problem is, which bit :-)

///Peter
Jul 26 '08 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

49
IDE
by: Thomas Lindgaard | last post by:
Hello I am probably going to start a war now... but so be it :) I just want to hear what all you guys who eat pythons for breakfast use for python coding. Currently I use Kate, but I would...
81
by: julio | last post by:
Sorry but there is no another way, c# .net and mono are going to rip python, not because python is a bad lenguage, but because is to darn old and it refuses to innovate things, to fix wrong things,...
1
by: Benjamin Lefevre | last post by:
I am currently developping a web crawler, mainly crawling mobile page (wml, mobile xhtml) but not only (also html/xml/...), and I ask myself which speed I can reach. This crawler is developped in...
12
by: Thomas Bartkus | last post by:
Does anyone use emacs together with both WordStar key bindings and python mode? I'm afraid that Wordstar editing key commands are burned R/O into my knuckles! I would like to play with emacs...
7
by: Xah Lee | last post by:
Summary: when encountering ex as a unit in css, FireFox (and iCab) did not take into account the font-family. Detail: http://xahlee.org/js/ff_pre_ex.html Xah xah@xahlee.org ∑...
4
by: emin.shopper | last post by:
Emacs seems to freeze when doing certain shell commands on Microsoft Windows. The following is a simple example with Xemacs: ---------------------------------------------------------- ...
5
by: levander | last post by:
I've been using pdb under emacs on an Ubuntu box to debug python programs. I just upgraded from Ubuntu Edgy to Feisty and this combo has stopped working. Python is at 2.5.1 now, and emacs is at...
331
by: Xah Lee | last post by:
http://xahlee.org/emacs/modernization.html ] The Modernization of Emacs ---------------------------------------- THE PROBLEM Emacs is a great editor. It is perhaps the most powerful and...
4
by: Richard Szopa | last post by:
Hi All, I am a devoted Emacs user and I write a lot in Python. However, I never managed to get my Emacs configuration right for this purpose. There were some discussions on this, but the threads...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.