GNU bug report logs -
#36143
[PATCH] Fix typo in src/keyboard.c
Previous Next
Reported by: Stefan Kangas <stefan <at> marxist.se>
Date: Sun, 9 Jun 2019 03:17:01 UTC
Severity: normal
Tags: patch
Done: Eli Zaretskii <eliz <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 36143 in the body.
You can then email your comments to 36143 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#36143
; Package
emacs
.
(Sun, 09 Jun 2019 03:17:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Stefan Kangas <stefan <at> marxist.se>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Sun, 09 Jun 2019 03:17:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Please see attached patch.
Thanks,
Stefan Kangas
[0001-src-keyboard.c-tool_bar_items-Fix-typo.patch (application/octet-stream, attachment)]
Reply sent
to
Eli Zaretskii <eliz <at> gnu.org>
:
You have taken responsibility.
(Sun, 09 Jun 2019 06:28:01 GMT)
Full text and
rfc822 format available.
Notification sent
to
Stefan Kangas <stefan <at> marxist.se>
:
bug acknowledged by developer.
(Sun, 09 Jun 2019 06:28:01 GMT)
Full text and
rfc822 format available.
Message #10 received at 36143-done <at> debbugs.gnu.org (full text, mbox):
> From: Stefan Kangas <stefan <at> marxist.se>
> Date: Sun, 9 Jun 2019 05:16:28 +0200
>
> Please see attached patch.
Thanks, I pushed it.
However, it looks like your local settings make Emacs untabify C
sources, so in your patch as posted a TAB was converted into spaces,
unlike the indentation around the line you changed (I fixed that
before committing). Please in the future be sure to edit the Emacs
sources without such local settings; we only prefer spaces to TABs in
Lisp sources, see .dir-locals.el in the repository.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#36143
; Package
emacs
.
(Sun, 09 Jun 2019 08:01:01 GMT)
Full text and
rfc822 format available.
Message #13 received at 36143-done <at> debbugs.gnu.org (full text, mbox):
Eli Zaretskii <eliz <at> gnu.org> writes:
> Thanks, I pushed it.
>
> [...] Please in the future be sure to edit the Emacs
> sources without such local settings; we only prefer spaces to TABs in
> Lisp sources, see .dir-locals.el in the repository.
Got it, thank you for taking care of it and installing it.
Best regards,
Stefan Kangas
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#36143
; Package
emacs
.
(Sun, 09 Jun 2019 13:22:02 GMT)
Full text and
rfc822 format available.
Message #16 received at 36143 <at> debbugs.gnu.org (full text, mbox):
> However, it looks like your local settings make Emacs untabify C
> sources, so in your patch as posted a TAB was converted into spaces,
> unlike the indentation around the line you changed (I fixed that
> before committing). Please in the future be sure to edit the Emacs
> sources without such local settings; we only prefer spaces to TABs in
> Lisp sources, see .dir-locals.el in the repository.
Oh, I also didn't realize C sources were supposed to be TABified. Maybe
.dir-locals.el should have an explicit (indent-tabs-mode . t) setting
under c-mode? Especially since with GNU indent style,
indent-tabs-mode=t results in a file which mixes tabs and spaces, so
it's not obvious that the tabs are really intentional.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#36143
; Package
emacs
.
(Sun, 09 Jun 2019 13:57:02 GMT)
Full text and
rfc822 format available.
Message #19 received at 36143 <at> debbugs.gnu.org (full text, mbox):
> From: Noam Postavsky <npostavs <at> gmail.com>
> Date: Sun, 09 Jun 2019 09:20:52 -0400
> Cc: , Stefan Kangas <stefan <at> marxist.se>
>
> Oh, I also didn't realize C sources were supposed to be TABified. Maybe
> .dir-locals.el should have an explicit (indent-tabs-mode . t) setting
> under c-mode?
It'd be fine with me, but maybe others will object.
I think it's okay to indent new C code with spaces, but when a few
lines are modified in an otherwise TAB-indented block, that makes the
source unaligned when reindented, so IMO should be avoided. And in
this case, it was even more extreme: a line was modified only very
slightly, so changing whitespace for only that single line was IMO
gross.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#36143
; Package
emacs
.
(Sun, 09 Jun 2019 14:08:03 GMT)
Full text and
rfc822 format available.
Message #22 received at 36143 <at> debbugs.gnu.org (full text, mbox):
Eli Zaretskii <eliz <at> gnu.org> writes:
>> From: Noam Postavsky <npostavs <at> gmail.com>
>> Date: Sun, 09 Jun 2019 09:20:52 -0400
>> Cc: , Stefan Kangas <stefan <at> marxist.se>
>>
>> Oh, I also didn't realize C sources were supposed to be TABified. Maybe
>> .dir-locals.el should have an explicit (indent-tabs-mode . t) setting
>> under c-mode?
> I think it's okay to indent new C code with spaces,
Oh, in that case the current .dir-locals.el (i.e., no explicit
indent-tabs-mode setting for c-mode) is okay. And I don't really want
to open up the TABs vs spaces debate, so let's leave it as is.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Mon, 08 Jul 2019 11:24:06 GMT)
Full text and
rfc822 format available.
This bug report was last modified 5 years and 342 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.