From: Drew Adams <drew.adams@oracle.com>
To: Michael Albinus <michael.albinus@gmx.de>
Cc: 31558@debbugs.gnu.org
Subject: bug#31558: 27.0; `custom-file' settings messed up by Emacs 27
Date: Wed, 23 May 2018 07:07:17 -0700 (PDT) [thread overview]
Message-ID: <8f1290c2-ad20-4ba9-809d-154188bae0fb@default> (raw)
In-Reply-To: <87wovug2pn.fsf@gmx.de>
> Maybe you put at the beginning of your custom file
> (or (locate-library "tramp") (provide 'tramp))
Yes, I guess that would work and is better than nothing,
but it seems wrong to tell Emacs that something has
been provided that has not. ;-)
Worse than style or ugliness, though, is that there
might be code here or there that tests
(featurep 'tramp) and acts accordingly. That code
surely will be led astray by such a hack.
I'd like to find a better way.
Seems like there should be a way for Tramp and
Customize to collaborate to produce a conditional
sexp that does not require tramp unconditionally.
E.g., one that tests (at time of evaluating
`custom-set-variables') whether Tramp is even
included in the Emacs version.
Or maybe somehow just use a soft-require - the
equivalent of (require 'tramp nil t)? Would that
work for Tramp, if it were possible for
`custom-set-variables'?
Seems like something is missing from Emacs for
such cases. A library wants to ensure that it is
loaded before evaluating a sexp that sets one of
its user options. But if loading the library is
impossible then setting the variable is benign,
so a soft-require is all that is really needed.
(Or am I missing something?)
next prev parent reply other threads:[~2018-05-23 14: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
2018-05-23 14:07 ` Drew Adams [this message]
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=8f1290c2-ad20-4ba9-809d-154188bae0fb@default \
--to=drew.adams@oracle.com \
--cc=31558@debbugs.gnu.org \
--cc=michael.albinus@gmx.de \
/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.