unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Re: master 992908b09a: Make connection-local variables user options
       [not found] ` <20220207183252.2C345C0DA36@vcs2.savannah.gnu.org>
@ 2022-02-08 10:14   ` Robert Pluim
  2022-02-08 15:26     ` Michael Albinus
  0 siblings, 1 reply; 3+ messages in thread
From: Robert Pluim @ 2022-02-08 10:14 UTC (permalink / raw)
  To: emacs-devel; +Cc: Michael Albinus

>>>>> On Mon,  7 Feb 2022 13:32:50 -0500 (EST), Michael Albinus <Michael.Albinus@gmx.de> said:
    Michael> -(defvar connection-local-profile-alist nil
    Michael> +(defcustom connection-local-profile-alist nil
    Michael>    "Alist mapping connection profiles to variable lists.
    Michael>  Each element in this list has the form (PROFILE VARIABLES).
    Michael>  PROFILE is the name of a connection profile (a symbol).
    Michael>  VARIABLES is a list that declares connection-local variables for
    Michael>  PROFILE.  An element in VARIABLES is an alist whose elements are
    Michael> -of the form (VAR . VALUE).")
    Michael> -
    Michael> -(defvar connection-local-criteria-alist nil
    Michael> +of the form (VAR . VALUE)."
    Michael> +  :type '(repeat (cons (symbol :tag "Profile")
    Michael> +                       (repeat :tag "Variables"
    Michael> +                               (cons (symbol :tag "Variable")
    Michael> +                                     (sexp :tag "Value")))))
    Michael> +  :group 'files
    Michael> +  :group 'tramp
    Michael> +  :version "29.1")

If you 'M-x customize-variable RET connection-local-profile-alist',
then customize will complain that this variable has been set outside
customize, which I think is done in tramp-integration.el. If it needs
a default non-nil value, can you not specify it here?

Robert
-- 



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

* Re: master 992908b09a: Make connection-local variables user options
  2022-02-08 10:14   ` master 992908b09a: Make connection-local variables user options Robert Pluim
@ 2022-02-08 15:26     ` Michael Albinus
  2022-02-08 16:17       ` Robert Pluim
  0 siblings, 1 reply; 3+ messages in thread
From: Michael Albinus @ 2022-02-08 15:26 UTC (permalink / raw)
  To: Robert Pluim; +Cc: emacs-devel

Robert Pluim <rpluim@gmail.com> writes:

Hi Robert,

> If you 'M-x customize-variable RET connection-local-profile-alist',
> then customize will complain that this variable has been set outside
> customize, which I think is done in tramp-integration.el. If it needs
> a default non-nil value, can you not specify it here?

Good idea, I've changed setting these user options to
`customize-set-variable'. Pushed to master.

> Robert

Best regards, Michael.



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

* Re: master 992908b09a: Make connection-local variables user options
  2022-02-08 15:26     ` Michael Albinus
@ 2022-02-08 16:17       ` Robert Pluim
  0 siblings, 0 replies; 3+ messages in thread
From: Robert Pluim @ 2022-02-08 16:17 UTC (permalink / raw)
  To: Michael Albinus; +Cc: emacs-devel

>>>>> On Tue, 08 Feb 2022 16:26:29 +0100, Michael Albinus <michael.albinus@gmx.de> said:

    Michael> Robert Pluim <rpluim@gmail.com> writes:
    Michael> Hi Robert,

    >> If you 'M-x customize-variable RET connection-local-profile-alist',
    >> then customize will complain that this variable has been set outside
    >> customize, which I think is done in tramp-integration.el. If it needs
    >> a default non-nil value, can you not specify it here?

    Michael> Good idea, I've changed setting these user options to
    Michael> `customize-set-variable'. Pushed to master.

Thanks (theyʼre now marked as "set for current session only", but they
donʼt get saved when you customize a different variable, so thatʼs
pretty harmless)

Robert
-- 



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

end of thread, other threads:[~2022-02-08 16:17 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <164425877032.10364.13250702459970712401@vcs2.savannah.gnu.org>
     [not found] ` <20220207183252.2C345C0DA36@vcs2.savannah.gnu.org>
2022-02-08 10:14   ` master 992908b09a: Make connection-local variables user options Robert Pluim
2022-02-08 15:26     ` Michael Albinus
2022-02-08 16:17       ` Robert Pluim

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).