To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.cadOpen lugnet.cad in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 CAD / 1011
Subject: 
Re: Any Emacs/LDraw users?
Newsgroups: 
lugnet.cad
Date: 
Sun, 21 Feb 1999 19:40:20 GMT
Viewed: 
990 times
  
Wow! Excellent!
As a long time emacs user, I'm very impressed.
Since I often have trouble remembering part numbers,
any chance of adding a query-lookup?  E.g. if I have the
cursor on the string "wing", and I do M-x-ldraw-lookup,
I would get a propt listing all the .dat files with "wing" in the
description?

-gyug

"Fredrik Glöckner" wrote:

I'm an Emacs user myself, and for Emacs users it is very common to make
a new major mode whenever one encounters a new data format.  So I have
started making a major mode for editing LDraw DAT files in Emacs.



Subject: 
Re: Any Emacs/LDraw users?
Newsgroups: 
lugnet.cad
Date: 
Mon, 22 Feb 1999 10:27:51 GMT
Viewed: 
659 times
  
Paul Gyugyi <paul@gyugyi.com> writes:

Wow! Excellent!  As a long time emacs user, I'm very impressed.

Thanks, I'm happy _someone_ actually uses it!  :-) For a while, I was
thinking I was just programming this for my own use.

BTW, are you using this on Emacs 20 or Emacs 19?  I'm thinking that the
file coding system thing, which makes sure DAT-files get the correct
EOL-style, may not work in Emacs 19.

Since I often have trouble remembering part numbers, any chance of
adding a query-lookup?

Yes, I this is on the planning stage.  But I'm not sure how this should
look.  There are two alternatives:

o Use the "parts.lst" file.  This should be fairly fast, but only
registred parts in the "\parts" directory can be searched.

o Build and maintain a "database" in Lisp.  Once a database is made,
searching would be very fast.  And parts everywhere can be searched.
(Actually, the user could choose which dirs to include in the database.)
But the database needs to be reconstructed when new parts/models are
added, which will probably be slow.

Also, I'm working on finishing the LEdit emulation, which should be done
first.

BTW, the newest addition is the feature which downloads and views the
part on the current line in the correct colour.  This is triggered with
"C-c C-p".  I currently don't maintain any version number, and new
updates of the source are added "all the time", which makes things
difficult for any users, I guess.

And when LDraw-mode is engaged, you can press "C-h m" to list the
current key-bindings.

Fredrik


©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR