all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
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 11:15:24 -0700 (PDT)	[thread overview]
Message-ID: <9a02dc54-10c0-4dfa-9ff8-b5cae2d804df@default> (raw)
In-Reply-To: <87bmd6gsci.fsf@gmx.de>

> > (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
> 
> 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"

Hm, indeed.  Maybe :intialize needs to not try to set it here
(i.e., during loading).

Maybe :initialize needs to test (featurep 'tramp) or something?

Or maybe some other value of :initialize is appropriate?
`custom-initialize-default'? 
`custom-initialize-safe-set'?
`custom-initialize-safe-default'?

Dunno.  I'm no expert on loading and defcustom initialization.

> Well, maybe I try something like this next days, as time permits. And
> I'm always willing to test your proposals.

Thanks for taking a look at this.





  reply	other threads:[~2018-05-23 18:15 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
2018-05-23 18:15           ` Drew Adams [this message]
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=9a02dc54-10c0-4dfa-9ff8-b5cae2d804df@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.