ftp.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2011/05/12/09:00:17

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
From: Rugxulo <rugxulo AT gmail DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: ANNOUNCE: DJGPP port of GNU Emacs 23.3 uploaded
Date: Thu, 12 May 2011 05:48:48 -0700 (PDT)
Organization: http://groups.google.com
Lines: 93
Message-ID: <80c58cc8-0175-4094-b0be-70ff8cb8c860@z7g2000prh.googlegroups.com>
References: <201104251501 DOT p3PF1pXS011872 AT delorie DOT com> <ipeqs4$5sb$1 AT news DOT onet DOT pl>
<8339l07wbn DOT fsf AT gnu DOT org> <bc8ba0ee-3b1d-4a2d-81f7-e00bede5a926 AT z7g2000prh DOT googlegroups DOT com>
<83zkmvggv4 DOT fsf AT gnu DOT org> <a247b893-6e70-4901-9210-6f158cde30c7 AT x1g2000yqb DOT googlegroups DOT com>
<6621d833-5d9a-4f43-8b36-1fe53191e293 AT d26g2000prn DOT googlegroups DOT com> <E1QKNyW-0002Ko-SC AT fencepost DOT gnu DOT org>
NNTP-Posting-Host: 65.13.115.246
Mime-Version: 1.0
X-Trace: posting.google.com 1305204528 12490 127.0.0.1 (12 May 2011 12:48:48 GMT)
X-Complaints-To: groups-abuse AT google DOT com
NNTP-Posting-Date: Thu, 12 May 2011 12:48:48 +0000 (UTC)
Complaints-To: groups-abuse AT google DOT com
Injection-Info: z7g2000prh.googlegroups.com; posting-host=65.13.115.246; posting-account=p5rsXQoAAAB8KPnVlgg9E_vlm2dvVhfO
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/534.24
(KHTML, like Gecko) Chrome/11.0.696.65 Safari/534.24,gzip(gfe)
Bytes: 5555
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Hi,

On May 11, 11:58=A0pm, Eli Zaretskii <e DOT  DOT  DOT  AT gnu DOT org> wrote:
> > From: Rugxulo <rugx DOT  DOT  DOT  AT gmail DOT com>
> > Newsgroups: comp.os.msdos.djgpp
> > Date: Wed, 11 May 2011 12:12:37 -0700 (PDT)
>
> > Okay, tried again (DOSEMU), added C:\EMACS\GNU\EMACS\BIN to %PATH%
> > just in case (didn't help). Still crashed when typing 'e' (edit) under
> > Dired (C-x d) on blah.sh file (though most other files are okay).
>
> It doesn't crash for me on Windows XP. =A0Does every .sh file cause a
> crash? =A0What other files are "not okay", and in what ways?

Dunno, would have to test more. (*.ob2? Can't remember offhand.)
Remember, this is DOSEMU x86-64, so it's not as good as the
traditional 32-bit one. So more than likely it's their "bug" (or lack
of support).

Honestly, I don't care for 64-bit (and don't "need" it personally, but
it is fast becoming ubiquitous), but for whatever reason I thought I
should test DOSEMU there for a while, for curiosity, to see how
compatible it is.

Perhaps I shouldn't bug you with comments when tested in such an
"unstable" environment. Well, I have 32-bit DOSEMU on my other
computer, so I guess I should install DJGPP Emacs there too, for
reference. (Or get/make another jump drive.)

> Can you post the traceback, even if it's just numerical addresses?

No because there is no traceback. I didn't mean it "crashes", it may
not at all, but it definitely closes the whole "DOS in a box" terminal
window, which means something somewhere is aborting it. It may just be
some 16-bit code incompatibility (most likely).

> > And *.mod still isn't recognized by default for font-lock.
>
> When you visit a *.mod file, do you see some special mode being turned
> on? =A0I see "Fundamental", which makes sense because .mod is not in
> auto-mode-alist. =A0So this is a missing feature in Emacs, not a
> DJGPP-specific bug. =A0Feel free to ask for an enhancement by typing
> "M-x report-emacs-bug RET".

Well, it's not important, and it's an easy fix (just turn it on!). I
just wanted to mention it since it seemed out of place (Pascal works
by default, Modula-2 doesn't). Seems too trivial to report it.

> > IIRC, Emacs needs (at compile time?) to know in advance what *.el
> > font lock files are available
>
> That's not true. =A0If you have some optional mode that is not part of
> Emacs, you need to set it up:
>
> =A0 . put it somewhere where Emacs will find it (the recommended place
> =A0 =A0 is the site-lisp subdirectory)
>
> =A0 . add an autoload command for it in your _emacs

This is what I always see people doing, but it always seems kludgy to
me.

> =A0 . add an appropriate association to auto-mode-alist.

This is what I meant. I guess I was naive to think it would
"magically" find any font lock *.el files and magically know when to
highlight. In TDE, the *.shl (syntax highlight file) has file name
extensions listed in it for each language, so it always knows which
are valid. But perhaps somebody somewhere (somewhat doubtful) thought
*.mod was "too generic" (Amiga sound module?).

> > Oh, and '\' is treated as a C escape, so that also messes up
> > font lock for the rest of the file, heh, oh well.
>
> In what mode?

Modula-2, I think, but possibly others too. This is more than likely
just a built-in limitation of the way Emacs handles font lock. Or
perhaps it's just a corner case that nobody worries about. Some
languages do indeed let you use \ as an escape, but others don't, so
it's only incorrect some of the time.

> > Other than these (very) minor quibbles, it works! So I'm not
> > complaining. (Though I don't have any 512 MB files to test, heh.)
>
> You can easily create it with a simple Awk script which writes lines
> of fixed length.

Heh, yes, I know. I could also (re)grab enwik8 and copy it 5x. Hmmm, I
forgot Project Gutenberg had some interesting documents that would fit
the bill. (I just grabbed one that was 5.9 MB, yow, cabbage-brained!)

(Hope this wasn't too much of wasting your time.)

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019