GNU bug report logs -
#65922
[qt-team PATCH 0/4] Avoid capturing python in qtbase, reinstate tests
Previous Next
Full log
View this message in rfc822 format
Hi Andreas,
Andreas Enge <andreas <at> enge.fr> writes:
> Am Sat, Sep 16, 2023 at 10:51:22PM -0400 schrieb Maxim Cournoyer:
>> > This one looks good, except for indentation there, I think:
>> >> + (substitute*
>> >> + (search-input-file
>> >> + outputs "lib/qt5/mkspecs/features/uikit/devices.py")
>> >> + (((which "python3"))
>> >> + "/usr/bin/env python3")))))))
>> It's actually valid -- I just doubled check :-)
>
> Hm, I thought that arguments to functions should be aligned, so that
> "(search-..." and "(((which" should start in the same column?
> And that we would indent by either 1 or 2 (according to arcane rules I
> never memorised)?
According to our indentation rules in .dir-locals.el:
--8<---------------cut here---------------start------------->8---
(put 'substitute* 'scheme-indent-function 1)
--8<---------------cut here---------------end--------------->8---
Which, following the Emacs documentation for scheme-indent-function then
lisp-indent-function (C-h f scheme-indent-function RET), says (where N
is the 1 argument):
--8<---------------cut here---------------start------------->8---
* an integer N, meaning indent the first N arguments specially
(like ordinary function arguments), and then indent any further
arguments like a body;
--8<---------------cut here---------------end--------------->8---
The indentation produced is because of that special rule.
--
Thanks,
Maxim
This bug report was last modified 1 year and 273 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.