From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.bugs Subject: bug#17948: 24.3; cperl: Needs an equivalent to `c-file-style' Date: Tue, 2 Jan 2024 09:33:32 -0800 Message-ID: References: <87egxzpnxh.fsf@naesten.mooo.com> <87y1z86t2f.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22723"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Samuel Bronson , Harald =?UTF-8?Q?J=C3=B6rg?= , 17948@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jan 02 18:34:20 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rKieh-0005fy-Ol for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 02 Jan 2024 18:34:19 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rKieP-0008OI-9P; Tue, 02 Jan 2024 12:34:01 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rKieO-0008N7-2R for bug-gnu-emacs@gnu.org; Tue, 02 Jan 2024 12:34:00 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rKieN-0002Qb-O2 for bug-gnu-emacs@gnu.org; Tue, 02 Jan 2024 12:33:59 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rKieQ-000341-76 for bug-gnu-emacs@gnu.org; Tue, 02 Jan 2024 12:34:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 02 Jan 2024 17:34:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 17948 X-GNU-PR-Package: emacs Original-Received: via spool by 17948-submit@debbugs.gnu.org id=B17948.170421682511754 (code B ref 17948); Tue, 02 Jan 2024 17:34:02 +0000 Original-Received: (at 17948) by debbugs.gnu.org; 2 Jan 2024 17:33:45 +0000 Original-Received: from localhost ([127.0.0.1]:51177 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rKie9-00033V-FW for submit@debbugs.gnu.org; Tue, 02 Jan 2024 12:33:45 -0500 Original-Received: from mail-ed1-x532.google.com ([2a00:1450:4864:20::532]:61598) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rKie5-000333-0m for 17948@debbugs.gnu.org; Tue, 02 Jan 2024 12:33:44 -0500 Original-Received: by mail-ed1-x532.google.com with SMTP id 4fb4d7f45d1cf-555144cd330so7116088a12.2 for <17948@debbugs.gnu.org>; Tue, 02 Jan 2024 09:33:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1704216812; x=1704821612; darn=debbugs.gnu.org; h=content-transfer-encoding:cc:to:subject:message-id:date :mime-version:references:in-reply-to:from:from:to:cc:subject:date :message-id:reply-to; bh=4EKCvrJZvyah6PRTWnmJcRSk84yQzwXM77pA8gEVibw=; b=jIPa90vx4vaDg+jKI4gG3BSv6th80JAA2p4U0gyzmvXVP54YLRdxPHcA9h1lyEhRdk kKeiDaGaSEUDSA18q0TRVgWcaMs2HYMBDIdoRU488hrGVVypNSkPhIS/qu3UaxBzi0/W lO6AwJrKJGVuRJ5DH1Nz6TMsFcQY4mM1+Zn6hlNG6wC7Jc9jYJepbpn8x7zhUw5gmnVX NYn7LRsf2UwdorCvLzW+Iby9onV1mLPvdka5eVXxbgeo2VdljSIYuC5Kqhw0kGDQ4/oe 881mDRVjKOHKewgfsbg24Twm60sAHFxVviKxcun+4eIELIVJHIrHP28WF44M+36ktgXr gCIw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704216812; x=1704821612; h=content-transfer-encoding:cc:to:subject:message-id:date :mime-version:references:in-reply-to:from:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=4EKCvrJZvyah6PRTWnmJcRSk84yQzwXM77pA8gEVibw=; b=BI1ZoLQQgXSt4ZXKmqots92bgx0nZtTzm0NjLSrAsycg+ORhIsIIT7uNSSysZTZ0j2 ggoaouT4ktrKaynnVSyg8qGIraa9INhNmXkc9EXYSQnXKL/hTz6FGzqFdurqveGoX2Ej ahuXDGXoB+SXPi5PzH6hhzvqph1q7Z/MZ1dOqEupqLOkycKUYEZYwM4/HrbcQ7vexTUu yyn0XQmo9MR4e5As5NycjUiugAwe3KegQ+K9D3uY29WzvxvxwttwmvzWFEGw4l+SMS2A 2yCrZ821XB+F78xt4MHg7YMEinSq9LChxx6WbZ9iMqGA8ALPA25rwN5FA2rb6SwB66xy 5pYw== X-Gm-Message-State: AOJu0Yy5q/zafvRmyqSug1OlkDOo8LiHTJecTniZFHUnPmu9+omT1Z8o 5urW3UxWWz2yUiAhZ0rgSIZAJotWtwHLrVjuJL0= X-Google-Smtp-Source: AGHT+IHe2T6R4dmHptwZlOIZ8i0Yi3awkrmX4u/ei4x0dj4LUfl9/yR6PqS0LGOxhxTfFShsCssGycxgjtrAlONW1vc= X-Received: by 2002:a50:9313:0:b0:54b:25e8:c00b with SMTP id m19-20020a509313000000b0054b25e8c00bmr10925182eda.6.1704216812558; Tue, 02 Jan 2024 09:33:32 -0800 (PST) Original-Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Tue, 2 Jan 2024 09:33:32 -0800 In-Reply-To: <87y1z86t2f.fsf@gnus.org> (Lars Ingebrigtsen's message of "Wed, 11 May 2022 16:29:44 +0200") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:277252 Archived-At: reopen 17948 thanks Lars Ingebrigtsen writes: > Samuel Bronson 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=C3=B6rg 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.