From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dieter Faulbaum Newsgroups: gmane.emacs.help Subject: suggestion for user-emacs-directory Date: Fri, 04 Sep 2020 12:51:23 +0200 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; format=flowed Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8575"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Fri Sep 04 12:51:52 2020 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kE9Jv-00028e-8K for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 04 Sep 2020 12:51:51 +0200 Original-Received: from localhost ([::1]:59760 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kE9Ju-0000Fa-3m for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 04 Sep 2020 06:51:50 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60416) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kE9Jb-0000FN-V9 for help-gnu-emacs@gnu.org; Fri, 04 Sep 2020 06:51:31 -0400 Original-Received: from einhorn.in-berlin.de ([192.109.42.8]:56895 helo=einhorn-mail.in-berlin.de) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kE9JZ-0007Iq-Ja for help-gnu-emacs@gnu.org; Fri, 04 Sep 2020 06:51:31 -0400 X-Envelope-From: mail@faulbaum.in-berlin.de X-Envelope-To: Original-Received: from authenticated.user (localhost [127.0.0.1]) by einhorn.in-berlin.de with ESMTPSA id 084ApNC8013347 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT) for ; Fri, 4 Sep 2020 12:51:23 +0200 Original-Received: from frangula (localhost [IPv6:::1]) by frangula.xpertex.home (Postfix) with ESMTPSA id 20992178; Fri, 4 Sep 2020 12:51:23 +0200 (CEST) Received-SPF: none client-ip=192.109.42.8; envelope-from=mail@faulbaum.in-berlin.de; helo=einhorn-mail.in-berlin.de X-detected-operating-system: by eggs.gnu.org: First seen = 2020/09/04 06:51:23 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:123960 Archived-At: Dear all, I use (at least) 3 versions of emacs on one computer, one from the Debian-package, the newer one from here https://ftpmirror.gnu.org/emacs/emacs-27.1.tar.xz and the snapshot from git://git.savannah.gnu.org/emacs.git/. They tend to have different customizable variables (and others). So I have these variables set in my (early-)init.el: (setq emacs-name "emacs" emacs-major-minor-version (format "%d.%d" emacs-major-version emacs-minor-version) user-emacs-directory (concat "~/.etc/" emacs-name "/" emacs-major-minor-version)) Maybe not the most elegant way but this works for me to distinguish these versions. Would it be good, if the user-emacs-directory not only becomes "per-user Emacs-specific" but also "per-user per-emacs-version Emacs-specific" in a similar way? (as an example: gimp does it likewise.-) Thanks for thinking about this. Dieter