[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#64104: Subject: 30.0.50; uncomment-region-default-1
From: |
Stefan Monnier |
Subject: |
bug#64104: Subject: 30.0.50; uncomment-region-default-1 |
Date: |
Sat, 17 Jun 2023 14:39:08 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
>> C-u comment-dwim RET with an active region of the following Python code:
>>
>> ---
>> # for i in text:
>> # print("(i): {}".format(str(i)))
>> ---
>>
>> results in error saying
>>
>> uncomment-region-default-1: Beginning of buffer
> Stefan, any comments?
- The error we give is not very user-friendly, so it might be good to
catch it and re-raise it as something more meaning ful the specific
operation performed.
- I have the vague impression that in some earlier version of that code we
would not signal an error but just remove as many comment markers as
possible (but no more than requested).
That could be a more friendly behavior.
Stefan