unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Philip Kaludercic <philipk@posteo.net>
To: Juri Linkov <juri@linkov.net>
Cc: Thuna <thuna.cing@gmail.com>,  emacs-devel@gnu.org
Subject: Re: Appending items to variables in .dir-locals.el
Date: Wed, 21 Sep 2022 19:06:18 +0000	[thread overview]
Message-ID: <87wn9wlf85.fsf@posteo.net> (raw)
In-Reply-To: <867d1wpp20.fsf@mail.linkov.net> (Juri Linkov's message of "Wed,  21 Sep 2022 21:40:23 +0300")

Juri Linkov <juri@linkov.net> writes:

>>> I think it would be good to be able to add items to variables that hold
>>> lists in `.dir-locals.el'.  Maybe with the special form `(append
>>> VARIABLE . ITEMS))'?  Considering `auto-mode-alist' has its own special
>>> form, I think the need for this already exists.
>>
>> While not exactly what you want, you can add a lisp expression and have
>> it evaluated to the same effect.  But yes, a proper feature would be
>> nice to have.
>
> Isn't (eval . (add-to-list 'VARIABLE ITEMS)) already short enough?

AFAIK this won't check if VARIABLE is safe and the modification isn't
local.



  reply	other threads:[~2022-09-21 19:06 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-21  7:48 Appending items to variables in .dir-locals.el Thuna
2022-09-21 11:36 ` Philip Kaludercic
2022-09-21 18:40   ` Juri Linkov
2022-09-21 19:06     ` Philip Kaludercic [this message]
2022-09-21 11:39 ` Lars Ingebrigtsen

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87wn9wlf85.fsf@posteo.net \
    --to=philipk@posteo.net \
    --cc=emacs-devel@gnu.org \
    --cc=juri@linkov.net \
    --cc=thuna.cing@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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).