all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Michael Albinus <michael.albinus@gmx.de>
To: Drew Adams <drew.adams@oracle.com>
Cc: 31558@debbugs.gnu.org
Subject: bug#31558: 27.0; `custom-file' settings messed up by Emacs 27
Date: Wed, 23 May 2018 11:07:16 +0200	[thread overview]
Message-ID: <87wovug2pn.fsf@gmx.de> (raw)
In-Reply-To: <5cd8f30c-a341-40c9-bb1f-441425e1a160@default> (Drew Adams's message of "Tue, 22 May 2018 12:04:04 -0700 (PDT)")

Drew Adams <drew.adams@oracle.com> writes:

Hi Drew,

> Admittedly, this is probably not a problem that others will run into
> often.  But it is quite annoying for me.
>
> I think the problem was introduced in Emacs 27, but I'm not positive.

I suspect it is also in Emacs 26.1, see below.

> This is the problem:
>
> If I update a user option and then save the new value, it is saved to my
> `custom-file', as usual.  But thereafter my `custom-file' cannot be
> loaded by Emacs 20, because of these two entries that have been updated:
>
>  '(tramp-default-method "ftp" nil (tramp))
>  '(tramp-verbose 9 nil (tramp))

In Tramp 2.3 (integrated in Emacs 26.1), the defcustoms have changed:

--8<---------------cut here---------------start------------->8---
(defcustom tramp-default-method
  ...
  :group 'tramp
  :type 'string
  :require 'tramp) ;; new in Tramp 2.3.
--8<---------------cut here---------------end--------------->8---

The additional arguments are due to the ":require 'tramp", which was
added that time.

> But why must Emacs now add that "nil (tramp)" to my custom settings?
> Must defining the option value require the library?

IIRC, there was a reason for this. Don't remember the details :-(

> Should Emacs (e.g. 27) be doing that systematically?  If it should, then
> what's the best way for me to prevent it from doing that, for my use
> case?

Maybe you put at the beginning of your custom file

--8<---------------cut here---------------start------------->8---
;; This is for Emacs < 22
(or (locate-library "tramp")
    (provide 'tramp))
--8<---------------cut here---------------end--------------->8---

Best regards, Michael.





  reply	other threads:[~2018-05-23  9:07 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-05-22 19:04 bug#31558: 27.0; `custom-file' settings messed up by Emacs 27 Drew Adams
2018-05-23  9:07 ` Michael Albinus [this message]
2018-05-23 14:07   ` Drew Adams
2018-05-23 14:50     ` Michael Albinus
2018-05-23 15:47       ` Drew Adams
2018-05-23 18:05         ` Michael Albinus
2018-05-23 18:15           ` Drew Adams
2018-05-23 18:22             ` Michael Albinus
2018-05-23 19:17               ` Drew Adams
2018-05-24 12:43                 ` Michael Albinus
2018-05-24 13:47                   ` Drew Adams
2018-05-24 13:56                     ` Michael Albinus
2018-05-24 14:44                       ` Drew Adams
2018-05-24 14:59                         ` Michael Albinus
2018-05-24 15:03                           ` Drew Adams
2018-05-29  8:11                             ` Michael Albinus

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

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

  git send-email \
    --in-reply-to=87wovug2pn.fsf@gmx.de \
    --to=michael.albinus@gmx.de \
    --cc=31558@debbugs.gnu.org \
    --cc=drew.adams@oracle.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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.