www.digitalmars.com         C & C++   DMDScript  

D - emacs d-mode update

reply "Ben Hinkle" <bhinkle4 juno.com> writes:
Fixes the design-by-contract indenting bug.
The fix is pretty weak. It just considers the in/out contracts and the body
as new toplevel defun blocks. This means skipping from defun to defun will
go through each contract instead of treating the entire function as one
defun. I tried playing around with cc-engine.el to get different behavior
but it was a PITY (pain in the youknow).

You can get it at
http://home.comcast.net/~benhinkle/d-mode.zip

I can't seem to get through to http://dlanguage.netunify.com/38 so I'll
update that link sometime else.

good luck,
-Ben
Dec 07 2003
next sibling parent J C Calvarese <jcc7 cox.net> writes:
Ben Hinkle wrote:

 Fixes the design-by-contract indenting bug.
 The fix is pretty weak. It just considers the in/out contracts and the body
 as new toplevel defun blocks. This means skipping from defun to defun will
 go through each contract instead of treating the entire function as one
 defun. I tried playing around with cc-engine.el to get different behavior
 but it was a PITY (pain in the youknow).
 
 You can get it at
 http://home.comcast.net/~benhinkle/d-mode.zip
 
 I can't seem to get through to http://dlanguage.netunify.com/38 so I'll
 update that link sometime else.

I put a link to your on Wiki4D at http://www.wikiservice.at/d/wiki.cgi?EditorSupport#Emacs In my experience, it's easier to edit than DWiki (netunify), so if I missed something, click on "Edit" and edit away... I don't know what the problem with the netunify Wiki is, but been it's down for weeks before and suddenly it was online again. And now it's disappeared again for a few weeks. I've copied most of the text to http://www.wikiservice.at/d/wiki.cgi?DWiki/FrontPage from pages I'd saved to my hard drive. Justin
 
 good luck,
 -Ben

Dec 07 2003
prev sibling parent reply "Carlos Santander B." <carlos8294 msn.com> writes:
BTW, where can I get font-lock? (sorry, zero previous experience with emacs)

覧覧覧覧覧覧覧覧覧覧覧覧
Carlos Santander


---

Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.545 / Virus Database: 339 - Release Date: 2003-11-27
Dec 07 2003
parent "Charles Sanders" <sanders-consulting comcast.net> writes:
Its included, use :

M-x font-lock-mode

Where M is meta ( ive never seen a meta key, its always meant alt [or
escape] to me ).

Ive included my .emacs file just to show you some customizations, automatic
loadings etc.  The

(global-font-lock-mode t)

line turns it on for all files.

Cheers, hope you like emacs!  ( C-h ? will give more help [ where C is
control] )


"Carlos Santander B." <carlos8294 msn.com> wrote in message
news:br04n1$1ntu$1 digitaldaemon.com...
 BTW, where can I get font-lock? (sorry, zero previous experience with

 -------------------------
 Carlos Santander


 ---

 Checked by AVG anti-virus system (http://www.grisoft.com).
 Version: 6.0.545 / Virus Database: 339 - Release Date: 2003-11-27

Dec 07 2003