GNU bug report logs -
#20547
emacs-24.5 problem with indent-mode
Previous Next
Reported by: Petr Hracek <phracek <at> redhat.com>
Date: Mon, 11 May 2015 11:19:02 UTC
Severity: minor
Tags: notabug
Done: Glenn Morris <rgm <at> gnu.org>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 20547 in the body.
You can then email your comments to 20547 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#20547
; Package
emacs
.
(Mon, 11 May 2015 11:19:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Petr Hracek <phracek <at> redhat.com>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Mon, 11 May 2015 11:19:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
Hi folks,
I have discovered an issue with Python indent-mode.
If I open a Python code and write 'def some_func:' and hit C-j
then emacs did not pass any indentation (e.g. 4 spaces).
When I turned of electrict-indent-mode then the issue is fixed.
I have already asked for that, I guess. But I am not pretty sure.
Did you discover this issue?
My .emacs file look like this:
(custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(inhibit-startup-screen t))
(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
)
(autoload 'rpm-spec-mode "rpm-spec-mode.el" "RPM spec mode." t)
(setq auto-mode-alist (append '(("\\.spec" . rpm-spec-mode))
auto-mode-alist))
(defun my-rpm-changelog-increment-version()
(interactive)
(goto-char (point-min))
(let * ((max (search-forward-regexp rpm-section-regexp))
(version (rpm-spec-field-value "Version" max)))
(rpm-add-change-log-entry (concat "Upgrade version to " version))
))
--
Petr Hracek
Software Engineer
Developer Experience
Red Hat, Inc
Mob: +420777056169
email: phracek <at> redhat.com
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#20547
; Package
emacs
.
(Mon, 11 May 2015 15:10:04 GMT)
Full text and
rfc822 format available.
Message #8 received at 20547 <at> debbugs.gnu.org (full text, mbox):
> Date: Mon, 11 May 2015 13:18:16 +0200
> From: Petr Hracek <phracek <at> redhat.com>
>
> I have discovered an issue with Python indent-mode.
>
> If I open a Python code and write 'def some_func:' and hit C-j
> then emacs did not pass any indentation (e.g. 4 spaces).
I think that function is now on RET by default. Did you try that?
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#20547
; Package
emacs
.
(Tue, 12 May 2015 09:42:01 GMT)
Full text and
rfc822 format available.
Message #11 received at 20547 <at> debbugs.gnu.org (full text, mbox):
Hi Eli,
right. RET like Return works fine.
Thanks.
On 05/11/2015 05:07 PM, Eli Zaretskii wrote:
>> Date: Mon, 11 May 2015 13:18:16 +0200
>> From: Petr Hracek <phracek <at> redhat.com>
>>
>> I have discovered an issue with Python indent-mode.
>>
>> If I open a Python code and write 'def some_func:' and hit C-j
>> then emacs did not pass any indentation (e.g. 4 spaces).
> I think that function is now on RET by default. Did you try that?
--
Petr Hracek
Software Engineer
Developer Experience
Red Hat, Inc
Mob: +420777056169
email: phracek <at> redhat.com
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#20547
; Package
emacs
.
(Tue, 12 May 2015 09:51:02 GMT)
Full text and
rfc822 format available.
Message #14 received at 20547 <at> debbugs.gnu.org (full text, mbox):
On 05/11/2015 05:07 PM, Eli Zaretskii wrote:
>> Date: Mon, 11 May 2015 13:18:16 +0200
>> From: Petr Hracek <phracek <at> redhat.com>
>>
>> I have discovered an issue with Python indent-mode.
>>
>> If I open a Python code and write 'def some_func:' and hit C-j
>> then emacs did not pass any indentation (e.g. 4 spaces).
> I think that function is now on RET by default. Did you try that?
Is it right, that electric-new-line-and-maybe-indent is hooked to C-j?
Based on http://emacswiki.org/emacs/AutoIndentation
--
Petr Hracek
Software Engineer
Developer Experience
Red Hat, Inc
Mob: +420777056169
email: phracek <at> redhat.com
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#20547
; Package
emacs
.
(Tue, 12 May 2015 15:53:02 GMT)
Full text and
rfc822 format available.
Message #17 received at 20547 <at> debbugs.gnu.org (full text, mbox):
See the NEWS file:
*** `electric-indent-mode' is now enabled by default.
Typing RET reindents the current line and indents the new line.
`C-j' inserts a newline but does not indent.
Added tag(s) notabug.
Request was from
Glenn Morris <rgm <at> gnu.org>
to
control <at> debbugs.gnu.org
.
(Tue, 12 May 2015 16:09:01 GMT)
Full text and
rfc822 format available.
bug closed, send any further explanations to
20547 <at> debbugs.gnu.org and Petr Hracek <phracek <at> redhat.com>
Request was from
Glenn Morris <rgm <at> gnu.org>
to
control <at> debbugs.gnu.org
.
(Tue, 19 May 2015 17:38:02 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Wed, 17 Jun 2015 11:24:05 GMT)
Full text and
rfc822 format available.
This bug report was last modified 10 years and 9 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.