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 20:05:49 +0200 [thread overview]
Message-ID: <87bmd6gsci.fsf@gmx.de> (raw)
In-Reply-To: <e2dfa786-78a3-4ba7-92ff-4a8342bc3ee3@default> (Drew Adams's message of "Wed, 23 May 2018 08:47:38 -0700 (PDT)")
Drew Adams <drew.adams@oracle.com> writes:
> But when you say "which also use packages checking for
> Tramp", what it really comes down to is being able to
> use the same `custom-file' (which has only stuff that is
> inserted automatically by Emacs) with multiple Emacs
> releases (in this case including Emacs 20).
Yes. But again, we're speaking about "multiple Emacs releases" including
releases prior 22. And I don't believe this is used so much these days.
The recent Tramp itself is backward compatible up to Emacs 24 only.
>> If there were such a possibility I would consider it.
>
> Can we perhaps consider this bug report as a request
> for such an enhancement?
Sure. I keep it open, at least as long we're discussing.
>> But it must already exist for Emacsen < 22;
>
> No, I don't think so. (But I'm not sure what you mean.)
I mean that if we need another mechanism but ":require 'tramp" in the
defcustom, that mechanism must exist also in such old releases.
> Something like this, for example:
>
> (defcustom tramp-verbose 3
> "..."
> :group 'tramp
> :type 'integer
> :set (lambda (sym val)
> (when (require 'tramp nil t)
> (custom-set-default sym val)))
> :initialize 'custom-initialize-set)
This results in
--8<---------------cut here---------------start------------->8---
Loading tramp...
Recursive load: "/net/ford/albinus/src/tramp/lisp/tramp.elc", "/net/ford/albinus/src/tramp/lisp/tramp.elc", "/net/ford/albinus/src/tramp/lisp/tramp.elc", "/net/ford/albinus/src/tramp/lisp/tramp.elc", "/net/ford/albinus/src/tramp/lisp/tramp.elc"
--8<---------------cut here---------------end--------------->8---
> I think the defcustom above would fit the bill, and it
> would require no time to implement. It just sets the
> variable normally, but only if Tramp can first be loaded.
>
> It does nothing is Tramp is not available.
> (boundp 'tramp-verbose) returns nil in that case.
>
> (Am I missing something?)
A working setup? :-)
Well, maybe I try something like this next days, as time permits. And
I'm always willing to test your proposals.
Best regards, Michael.
next prev parent reply other threads:[~2018-05-23 18:05 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
2018-05-23 14:50 ` Michael Albinus
2018-05-23 15:47 ` Drew Adams
2018-05-23 18:05 ` Michael Albinus [this message]
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=87bmd6gsci.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.