GNU bug report logs -
#17948
24.3; cperl: Needs an equivalent to `c-file-style'
Previous Next
Reported by: Samuel Bronson <naesten <at> gmail.com>
Date: Sat, 5 Jul 2014 20:11:01 UTC
Severity: wishlist
Found in version 24.3
Done: Harald Jörg <haj <at> posteo.de>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
reopen 17948
thanks
Lars Ingebrigtsen <larsi <at> gnus.org> writes:
> Samuel Bronson <naesten <at> 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 <at> 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.
This bug report was last modified 1 year and 77 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.