help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: LISP routines for commenting


From: Thierry Volpiatto
Subject: Re: LISP routines for commenting
Date: Sat, 09 Aug 2008 19:19:00 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux)

"Lennart Borgman (gmail)" <lennart.borgman@gmail.com> writes:

> Thierry Volpiatto wrote:
>> "Lennart Borgman (gmail)" <lennart.borgman@gmail.com> writes:
>>
>>> Thierry Volpiatto wrote:
>>>> Python-mode provide a command for indenting that is bind to:
>>>>
>>>> C-c # ==> comment
>>>> C-u C-c # ==> uncomment
>>>> The command is: `py-comment-region'
>>>>
>>>> It is better to comment with that instead of the usual M-;
>>>> because it don't affect indentation after a block of commented code.
>>>
>>> Do you mean that this is a bug in the support for M-; in phyton-mode?
>>> Or is it a bug in M-;
>>>
>> I don't think it's a bug, it's just better to comment with the proper
>> function in python, especially if there is complex level of indentation
>> (loop followed with other loop and if if if...etc).
>
> But isn't there a bug somewhere if M-; does not do the right thing?

Well, if emacs is meant to use python with python.el and it is working
fine with it, it is not a bug, but if M-; don't work properly with
python.el, yes, it is a bug!
I don't know how emacs is working actually with python.el because i
don't use it. 

>> However M-; work in most cases.
>> So if it's a bug, it come from python-mode, because M-; normally have to
>> be used with python.el (is it working with python.el ?) because it is
>> the normal mode to use in emacs with python even if IMHO python-mode is
>> much better.
>>
>

-- 
A + Thierry Volpiatto
Location: Saint-Cyr-Sur-Mer - France




reply via email to

[Prev in Thread] Current Thread [Next in Thread]