Hi Kristis,

Can you provide more detail on what exact perltidy output produces what exact 
behavior from Emacs?  If Emacs is converting spaces to tab characters, then

M-x customize-variable RET indent-tabs-mode RET

and turn it off and save it.  Otherwise, there are lots of options in

M-x customize-group RET perl RET

to change the way that Emacs formats Perl code.  I also see from a quick Google 
of "perltidy emacs" that one or more people have written a mode or modes which 
allow you to easily call perltidy from Emacs.  I guess it is probably nicer 
when Emacs comes very close to what perltidy is doing, though, so you don't 
have to run perltidy too frequently, hence I'd suggest playing with the 
customizations - indent levels, etc.

Regards,
David


----------------------------------------------
David O'Shea
Engineer
DSpace Pty Ltd
(an EMS Technologies Company)

[EMAIL PROTECTED]
www.dspace.com.au
T: +61 8 8260 8118
 

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of 
> Kristis Makris
> Sent: Friday, 14 December 2007 3:12 AM
> To: Oliver Schäfer
> Cc: [email protected]
> Subject: Re: [scmbug-users] Issue 1058 / formatting code
> 
> Thanks Oliver. Indeed it fixes the blank lines problem.
> 
> The new problem now is that it fixes indentation so that Emacs doesn't
> like it. Every time I press Tab in Emacs it moves the lines that
> perltidy created.
> 
> Perhaps we should use Emacs in some mode that will reformat 
> everything.
> 
> 
> On Thu, 2007-12-13 at 08:27 +0100, Oliver Schäfer wrote:
> > Hello Kristis,
> > 
> > attached updated format.sh script that does exactly what 
> you expect.  
> > No reason to hesitate anymore.
> > 
> > http://bugzilla.mkgnu.net/show_bug.cgi?id=1058
> > https://sourceforge.net/tracker/? 
> > func=detail&atid=117029&aid=1848434&group_id=17029
> > 
> > --
> > Oliver Schäfer
> > 
> > _______________________________________________
> > scmbug-users mailing list
> > [email protected]
> > http://lists.mkgnu.net/cgi-bin/mailman/listinfo/scmbug-users
> 
_______________________________________________
scmbug-users mailing list
[email protected]
http://lists.mkgnu.net/cgi-bin/mailman/listinfo/scmbug-users

Reply via email to