all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#31558: 27.0; `custom-file' settings messed up by Emacs 27
@ 2018-05-22 19:04 Drew Adams
  2018-05-23  9:07 ` Michael Albinus
  0 siblings, 1 reply; 16+ messages in thread
From: Drew Adams @ 2018-05-22 19:04 UTC (permalink / raw)
  To: 31558

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.

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))

I did not modify or ask to save those two options.  Their values remain
the same as they were.  What has happened is that Emacs has now added
"nil (tramp)", and those additional elements in the list make Emacs 20
choke, because library `tramp' does not exist in Emacs 20.

Signaling: (file-error "Cannot open load file" "tramp")
  require(tramp)
  mapcar(require (tramp))
  custom-set-variables(... (tramp-debug-buffer t)
                           (tramp-default-method "ftp" nil (tramp))
                           (tramp-verbose 9 nil (tramp)) ...)

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

I have no other case of an option where such a require argument is
inserted.  And I need not use Tramp at all, for these options to get
updated this way.

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?

(In fact, in Emacs 20, the doc string for `custom-set-variables' does
not even mention the possibility of an entry having a 4th argument,
REQUEST, but the code for that function does handle it, as
`custom-requests'.)

In GNU Emacs 27.0.50 (build 3, x86_64-w64-mingw32)
 of 2018-03-21
Repository revision: e70d0c9e66d7a8609450b2889869d16aeb0363b5
Windowing system distributor `Microsoft Corp.', version 6.1.7601
Configured using:
 `configure --without-dbus --host=x86_64-w64-mingw32
 --without-compress-install -C 'CFLAGS=-O2 -static -g3''





^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2018-05-29  8:11 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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

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.