Subject: bug#40671: [DOC] modify literal objects

From: Michael Heerdegen <[email-masked]>
Date: Tue, 12 May 2020 00:36:28 +0200

Noam Postavsky <[email-masked]> writes:

> Paul Eggert <[email-masked]> writes:
>
> >  (defvar gnus-article-mode-line-format-alist
> > -  (nconc '((?w (gnus-article-wash-status) ?s)
> > -	   (?m (gnus-article-mime-part-status) ?s))
> > -	 gnus-summary-mode-line-format-alist))
> > +  (nconc `((?w (gnus-article-wash-status) ?s)
> > +	   (?m (gnus-article-mime-part-status) ?s)
> > +	   ,@gnus-summary-mode-line-format-alist)))
>
> You meant to remove the nconc call too, right?

That, and, the code still makes literal lists to alist entries.  If you
modify these associations, you modify these literal lists.

I wonder how many of such uses of backquote expressions used to
construct alists are scattered throughout the Emacs code.

Michael.