From: Stefan Kangas <stefankangas@gmail.com>
To: Lars Ingebrigtsen <larsi@gnus.org>
Cc: "Samuel Bronson" <naesten@gmail.com>,
"Harald Jörg" <haj@posteo.de>,
17948@debbugs.gnu.org
Subject: bug#17948: 24.3; cperl: Needs an equivalent to `c-file-style'
Date: Tue, 2 Jan 2024 09:33:32 -0800 [thread overview]
Message-ID: <CADwFkmm+e9LHUr0KdXTWJv_KrTkr5mYht=gy3jnNoMy6+iRk=Q@mail.gmail.com> (raw)
In-Reply-To: <87y1z86t2f.fsf@gnus.org> (Lars Ingebrigtsen's message of "Wed, 11 May 2022 16:29:44 +0200")
reopen 17948
thanks
Lars Ingebrigtsen <larsi@gnus.org> writes:
> Samuel Bronson <naesten@gmail.com> writes:
>
>> The package `cperl' could *really* benefit from a way to do the
>> equivalent of `cperl-set-style' from a Local Variables block or
>> .dir-locals.el file.
>
> I've now added this to Emacs 29 (under the name cperl-file-style).
Harald Jörg <haj@posteo.de> writes:
> The current implementation might need some reconsideration, though... I
> have been playing around with it and am a bit confused.
>
> As far as I understand it, `cperl-file-style' is supposed to be set in
> .dir-locals.el. If I define it there as "PBP", then that style going to
> be local in buffers visiting files from the same directory. Fine so
> far.
>
> However, the individual settings like `cperl-indent-level' are not
> buffer-local, nor made buffer-local by cperl-set-style. Therefore, if I
> run `cperl-set-style' in any buffer (or from a customize :set function
> or from another .dir-locals.el), then it will override the value ... in
> all buffers, regardless of their local style settings.
>
> The C modes (which are the example after which cperl-file-style was
> built) solve this with a special value 'set-from-style - I guess
> cperl-mode needs something in the same spirit.
So I don't think the feature is working in its current form.
next prev parent reply other threads:[~2024-01-02 17:33 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-05 20:10 bug#17948: 24.3; cperl: Needs an equivalent to `c-file-style' Samuel Bronson
2022-05-11 14:29 ` Lars Ingebrigtsen
2024-01-02 17:33 ` Stefan Kangas [this message]
2024-01-03 19:02 ` Harald Jörg
2024-01-05 20:18 ` Stefan Kangas
2024-01-08 8:23 ` bug#17948: 24.3; cperl: Needs an equivalent to `c-file-style' [PATCH] Harald Jörg
2024-01-08 12:51 ` Eli Zaretskii
2024-01-08 15:26 ` Harald Jörg
2024-01-08 19:27 ` Stefan Kangas
2024-01-09 16:06 ` bug#17948: 24.3; cperl: Needs an equivalent to `c-file-style' john muhl via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-01-09 18:23 ` Harald Jörg
2024-03-08 8:13 ` bug#17948: Emacs bug control: close 17948 Harald Jörg
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CADwFkmm+e9LHUr0KdXTWJv_KrTkr5mYht=gy3jnNoMy6+iRk=Q@mail.gmail.com' \
--to=stefankangas@gmail.com \
--cc=17948@debbugs.gnu.org \
--cc=haj@posteo.de \
--cc=larsi@gnus.org \
--cc=naesten@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.