HI Devid. On Fri, 2007-12-14 at 08:36 +1030, David O'Shea wrote: > 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
I'm not sure I understand the question. After I run perltidy, if I bring up the source code in Emacs, and press M-q (which usually indents code the Emacs way) I see that the code "moves". To the left, or the right, or in any case away from where perltidy put it. The indentation convention I've been following during Scmbug development was that every time I write some code I press M-q. Either on that line of code, a group of lines, comments, etc. and then commit the result. After I run perltidy (which is a tool we use aiming to fix the tab vs spaces problem) I get the problem mentioned above. And before I commit, TkDiff confirms that this code that Emacs needs to "move" again if I press M-q was indeed changed. > M-x customize-variable RET indent-tabs-mode RET > > and turn it off and save it. Otherwise, there are lots of options in Yes. I just started using this. Unfortunately I should have used this a long time ago to avoid this tab vs spaces issue we have now. > 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. I don't want to call perltidy from Emacs. I want to press M-q from Emacs. Because its "the default Emacs way of indenting", meaning others can also just press M-q without needing to install special macros in their .emacs or special tools. So overall I have the feeling that we need to get Emacs to reindent all the source code replacing tabs with spaces, since the default indentation I've been using was "the Emacs way".
signature.asc
Description: This is a digitally signed message part
_______________________________________________ scmbug-users mailing list [email protected] http://lists.mkgnu.net/cgi-bin/mailman/listinfo/scmbug-users
