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
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
begin 666 .emacs M"BAD969U;B!I;G-E<G0M=&EM92 H*0H ("AI;G1E<F%C=&EV92D*(" H:6YS M97)T("AC=7)R96YT+71I;64M<W1R:6YG*2DI"B " HH9VQO8F%L+7-E="UK M97D 6V8S72 G8G5F9F5R+6UE;G4I"BAG;&]B86PM<V5T+6ME>2!;9C1=("=F M;VYT+6QO8VLM;6]D92D**&=L;V)A;"US970M:V5Y(%MF-5T )W-P965D8F%R M*6 **&=L;V)A;"US970M:V5Y(%MF.%T )W)E<&QA8V4M<W1R:6YG*0HH9VQO M8F%L+7-E="UK97D 6V8Y72 G<75E<GDM<F5P;&%C92D**&=L;V)A;"US970M M:V5Y(%MF,3%=("=I;G-E<G0M=&EM92D**&=L;V)A;"US970M:V5Y(%MF,3)= M("=O=&AE<BUW:6YD;W<I"BAG;&]B86PM<V5T+6ME>2 B7$,M>B( )W5N9&\I M+71A9RD**'%U:65T;'DM<F5A9"UA8F)R978M9FEL92D*"BAG;&]B86PM9F]N M="UL;V-K+6UO9&4 ="D**'!U=" G9&]W;F-A<V4M<F5G:6]N("=D:7-A8FQE M9"!N:6PI" HH<F5Q=6ER92 G<&AP+6UO9&4I"BAS971Q(&%U=&\M;6]D92UA M;&ES=" H8V]N<R G*")<7"YP:'!<7"<B("X <&AP+6UO9&4I(&%U=&\M;6]D M92UA;&ES="DI" HH<F5Q=6ER92 G:&%S:V5L;"UM;V1E*0HH<V5T<2!A=71O M+6UO9&4M86QI<W0 *&-O;G, )R B7%PN;&AS7%PG(B N($A!4TM%3$PM;6]D M92D 875T;RUM;V1E+6%L:7-T*2D*"BAR97%U:7)E("=D+6UO9&4I"BAS971Q M(&%U=&\M;6]D92UA;&ES=" H8V]N<R G*")<7"YD7%PG(B N(&0M;6]D92D M875T;RUM;V1E+6%L:7-T*2D*"BAS971Q(&,M9&5F875L="US='EL92 B8G-D M(BD*"BAS971Q(&%U=&\M;6]D92UA;&ES=" H8V]N<R G*")<7"YH7%PG(B N M(&,K*RUM;V1E*2!A=71O+6UO9&4M86QI<W0I*0H*"BAC=7-T;VTM<V5T+79A M<FEA8FQE<PH (#L[(&-U<W1O;2US970M=F%R:6%B;&5S('=A<R!A9&1E9"!B M66]U<B!I;FET(&9I;&4 <VAO=6QD(&-O;G1A:6X ;VYL>2!O;F4 <W5C:"!I M;G-T86YC92X*("<H<V%V92UA8F)R979S('0I*0HH8W5S=&]M+7-E="UF86-E M<PH (#L[(&-U<W1O;2US970M9F%C97, =V%S(&%D9&5D(&)Y($-U<W1O;2 M M+2!D;VXG="!E9&ET(&]R(&-U="]P87-T92!I="$*(" [.R!9;W5R(&EN:70 M9FEL92!S:&]U;&0 8V]N=&%I;B!O;FQY(&]N92!S=6-H(&EN<W1A;F-E+ H ` end
Dec 07 2003