0

I use the same .custom file on different machines syncronised via a git repo.

I just noticed that suddenly the .custom file from one machine uses the (quote syntax while in the past the ' syntax was used (or vice versa). Two questions:

  1. Why is this happening? Is there a change in, say, Emacs 27? (On one machine I have upgarded to 27.)

  2. How can I convert manually between the two syntaxes, so that I can diff teh files sensibly?

Drew
  • 77,472
  • 10
  • 114
  • 243
halloleo
  • 1,341
  • 10
  • 23

1 Answers1

3

It's a change in emacs-27, from etc/NEWS:

** 'print-quoted' now defaults to t, so if you want to see
'(quote x)' instead of 'x you will have to bind it to nil where applicable.

So binding print-quoted to your desired value and then saving a customization should be enough.

Drew
  • 77,472
  • 10
  • 114
  • 243
rpluim
  • 5,245
  • 11
  • 25
  • Thanks. This points me definitely in the right direction! Now I just have to find out how to convert the file always to the same syntax - As long as I have 26er Emacses around I guess a crud temporary solution can be to set print-quoetd globally to nil - but I hope this doesn't break anything in the one Emacs 27 I use... – halloleo Oct 21 '20 at 03:19
  • 1
    I don't think binding print-quoted to nil will break anything – rpluim Oct 21 '20 at 07:30