[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#17948: 24.3; cperl: Needs an equivalent to `c-file-style' [PATCH]
From: |
Harald Jörg |
Subject: |
bug#17948: 24.3; cperl: Needs an equivalent to `c-file-style' [PATCH] |
Date: |
Mon, 08 Jan 2024 08:23:35 +0000 |
So... I promised a bit too much. It is not possible to override an
individual indentation setting (e.g. cperl-indent-level) when a
cperl-file-style is used. File (and directory) variables are applied
after the body of cperl-mode, and the styles do their work only after
that in hack-local-variables-hook. I did not know that. So, styles
will always override the settings they provide.
But apart from that, the patch (attached) does what I would expect: I
can set a default style in custom, individual styles from .dir-locals.el
or file local variables work without affecting other buffers.
I suggest this patch should go to the emacs-29 branch.
--
Cheers,
haj
0001-cperl-mode.el-Make-sure-cperl-file-style-is-buffer-l.patch
Description: Patch for Bug#17948
- bug#17948: 24.3; cperl: Needs an equivalent to `c-file-style', Stefan Kangas, 2024/01/02
- bug#17948: 24.3; cperl: Needs an equivalent to `c-file-style', Harald Jörg, 2024/01/03
- bug#17948: 24.3; cperl: Needs an equivalent to `c-file-style', Stefan Kangas, 2024/01/05
- bug#17948: 24.3; cperl: Needs an equivalent to `c-file-style' [PATCH],
Harald Jörg <=
- bug#17948: 24.3; cperl: Needs an equivalent to `c-file-style' [PATCH], Eli Zaretskii, 2024/01/08
- bug#17948: 24.3; cperl: Needs an equivalent to `c-file-style' [PATCH], Harald Jörg, 2024/01/08
- bug#17948: 24.3; cperl: Needs an equivalent to `c-file-style' [PATCH], Stefan Kangas, 2024/01/08
- bug#17948: 24.3; cperl: Needs an equivalent to `c-file-style', john muhl, 2024/01/09
- bug#17948: 24.3; cperl: Needs an equivalent to `c-file-style', Harald Jörg, 2024/01/09