GNU bug report logs - #18512
no startup warning if user-emacs-directory is modfied and added to load-path

Previous Next

Package: emacs;

Reported by: David Reitter <david.reitter <at> gmail.com>

Date: Sat, 20 Sep 2014 03:28:02 UTC

Severity: minor

Found in version 24.3.93

Fixed in version 25.1

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 18512 in the body.
You can then email your comments to 18512 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#18512; Package emacs. (Sat, 20 Sep 2014 03:28:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to David Reitter <david.reitter <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sat, 20 Sep 2014 03:28:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: David Reitter <david.reitter <at> gmail.com>
To: Bug-Gnu-Emacs <bug-gnu-emacs <at> gnu.org>
Subject: 24.3.93;
 tramp persistency file: incompatible with old versions? Tramp won't
 start!
Date: Fri, 19 Sep 2014 23:26:48 -0400
After upgrading to [Aquamacs based on] a pre-release of 24.4, a user complained about Tramp not working.

Some investigation showed that the error was reproducible with a 

(load “tramp” nil)

and it occurred when it tried to load the file specified in `tramp-persistency-file-name’.  The error message was:

eval-buffer: Invalid function: (["scpc" "dr” “xxx.yyy.org" nil] ("uname" "Darwin 9.8.0") ("test" "test") ("remote-path" ("/usr/bin" "/bin" "/usr/sbin" "/sbin" "/usr/local/bin")) ("remote-shell" "/bin/sh") ("~" "/Users/dr") ("readlink" nil) ("perl-file-spec" t) ("perl-cwd-realpath" t) ("perl" "\\perl") …)


The file contents of the file specified in tramp-persistency-file-name began with

> ; Tramp connection history.  Don't change this file.
> ;; You can delete it, forcing Tramp to reapply the checks.
> 
> ((["scpc" "dr" "braeburn.aquamacs.org" nil]
>   ("uname" "Darwin 9.8.0")
>   ("test" "test")
>   ("remote-path"
>    ("/usr/bin" "/bin" "/usr/sbin" "/sbin" "/usr/local/bin"))
>   ("remote-shell" "/bin/sh”)


This does not look like a file that can be loaded with `load’.

It was probably produced with an older Emacs version, but judging from the file date, probably just the previous release 23.3.

Deleting the file makes the error go away.  Tramp works just fine then.

I think Emacs should be smart enough to handle the version upgrade.  Perhaps re-generating the file if reading it produces an exception should be a transparent and automatic measure.





In Aquamacs 3.1dev GNU Emacs 24.3.93.11
(x86_64-apple-darwin13.3.0, NS apple-appkit-1265.21)
of 2014-09-16 (Aquamacs-3.0a-2881-g08aa69d) on momo
Operating System: OS X Version 10.9.4 (Build 13E28)
Important settings:
  value of $LANG: en_US.UTF-8
  locale-coding-system: utf-8-unix

Major mode: Text

Minor modes in effect:
  TeX-PDF-mode: t
  TeX-source-correlate-mode: t
  shell-dirtrack-mode: t
  which-function-mode: t
  savehist-mode: t
  smart-frame-positioning-mode: t
  aquamacs-autoface-mode: t
  recentf-mode: t
  osx-key-mode: t
  tabbar-mwheel-mode: t
  tabbar-mode: t
  show-paren-mode: t
  delete-selection-mode: t
  cua-mode: t
  tooltip-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  smart-spacing-mode: t
  size-indication-mode: t
  column-number-mode: t
  line-number-mode: t
  visual-line-mode: t
  transient-mark-mode: (only . t)

Recent input:
<return> <help-echo> <wheel-down> <double-wheel-down> 
<triple-wheel-down> <triple-wheel-down> <triple-wheel-down> 
<triple-wheel-down> <triple-wheel-down> <help-echo> 
<wheel-down> <double-wheel-down> <triple-wheel-down> 
<triple-wheel-down> <triple-wheel-down> <triple-wheel-down> 
<triple-wheel-down> <triple-wheel-down> <triple-wheel-down> 
<triple-wheel-down> <help-echo> <down-mouse-1> <mouse-1> 
<help-echo> <down-mouse-1> <mouse-1> ⌘W <down-mouse-1> 
<mouse-1> ⌘W <ns-application-activated> ⌘W N <menu-bar> 
<options> <save> <ns-application-activated> <down-mouse-1> 
<mouse-1> ⌘W ⌘A ⌘C <help-echo> <down-mouse-1> <mouse-1> 
<wheel-up> <double-wheel-up> <triple-wheel-up> <triple-wheel-up> 
<wheel-up> <double-wheel-up> <triple-wheel-up> <triple-wheel-up> 
<wheel-up> <double-wheel-up> <triple-wheel-up> <triple-wheel-up> 
<wheel-left> <wheel-up> <double-wheel-up> <triple-wheel-up> 
<wheel-up> <wheel-up> <double-wheel-up> <triple-wheel-up> 
<wheel-up> <double-wheel-up> <switch-frame> <ns-application-activated> 
<down-mouse-1> <mouse-1> ⌘T ( L O A D SPC " T R A M 
P " SPC N I L ) ^X ^E <help-echo> <down-mouse-1> <mouse-movement> 
<mouse-movement> <mouse-movement> <mouse-movement> 
<mouse-movement> <drag-mouse-1> <menu-bar> <help-menu> 
<bug-diagnosis> <debug-on-quit> <down-mouse-1> <mouse-1> 
^X ^E <help-echo> <down-mouse-1> <drag-mouse-1> <down-mouse-1> 
<mouse-1> <switch-frame> <wheel-down> <double-wheel-down> 
<triple-wheel-down> <triple-wheel-down> <triple-wheel-down> 
<triple-wheel-down> <wheel-down> <double-wheel-down> 
<triple-wheel-down> <triple-wheel-down> <triple-wheel-down> 
<triple-wheel-down> <triple-wheel-down> <wheel-down> 
<double-wheel-down> <triple-wheel-down> <triple-wheel-down> 
<help-echo> <ns-application-activated> <switch-frame> 
^H V T R A M P - <tab> C O N N <tab> H I <tab> <backspace> 
<backspace> <tab> <M-backspace> <tab> <down-mouse-1> 
<mouse-1> ⌘F F I L E ⌘G ⌘G ⌘G ⌘G ⌘G ⌘G ⌘G <wheel-down> 
<double-wheel-down> <triple-wheel-down> <triple-wheel-down> 
<triple-wheel-down> ⌘G ⌘G ⌘G ⌘G ⌘G ⌘G ⌘G ⌘G <wheel-down> 
<double-wheel-down> <triple-wheel-down> <help-echo> 
<down-mouse-1> <mouse-1> <S-down-mouse-1> <S-mouse-1> 
⌘C <help-echo> <ns-application-activated> <switch-frame> 
<menu-bar> <help-menu> <bug-diagnosis> <send-emacs
-bug-report>

Recent messages:
Loading /Users/dr/Library/Application Support/Aquamacs Emacs/tramp...
eval-buffer: Invalid function: (["scpc" "dr" "braeburn.aquamacs.org" nil] ("uname" "Darwin 9.8.0") ("test" "test") ("remote-path" ("/usr/bin" "/bin" "/usr/sbin" "/sbin" "/usr/local/bin")) ("remote-shell" "/bin/sh") ("~" "/Users/dr") ("readlink" nil) ("perl-file-spec" t) ("perl-cwd-realpath" t) ("perl" "\\perl") ...)
Mark set
Auto-saving...
Debug on Quit enabled globally
Loading /Users/dr/Library/Application Support/Aquamacs Emacs/tramp...
eval-buffer: Invalid function: (["scpc" "dr" "braeburn.aquamacs.org" nil] ("uname" "Darwin 9.8.0") ("test" "test") ("remote-path" ("/usr/bin" "/bin" "/usr/sbin" "/sbin" "/usr/local/bin")) ("remote-shell" "/bin/sh") ("~" "/Users/dr") ("readlink" nil) ("perl-file-spec" t) ("perl-cwd-realpath" t) ("perl" "\\perl") ...)
user-error: Minibuffer window is not active
Making completion list... [3 times]
Type "q" to quit the help frame.

Load-path shadows:
/Users/dr/Library/Application Support/Aquamacs Emacs/JDEE/site-start hides /Library/Application Support/Aquamacs Emacs/Imaxima Plugin/site-start
/Users/dr/Library/Application Support/Aquamacs Emacs/JDEE/site-start hides /Library/Application Support/Aquamacs Emacs/SLIME/site-start
/Users/dr/Library/Application Support/Aquamacs Emacs/calc hides /Users/dr/ae24.git/nextstep/Aquamacs.app/Contents/Resources/lisp/calc/calc
/Users/dr/Library/Application Support/Aquamacs Emacs/JDEE/site-start hides /Users/dr/ae24.git/nextstep/Aquamacs.app/Contents/Resources/lisp/aquamacs/site-start

Features:
(shadow sort mail-extr emacsbug battery time flyspell ispell hl-line
linum dired tramp-cache tramp-sh tramp tramp-compat auth-source
gnus-util password-cache tramp-loaddefs trampver debug log-edit message
format-spec rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse
rfc2231 mailabbrev gmm-utils mailheader matlab tempo log-view pcvs-util
vc vc-dispatcher edebug jka-compr eieio-opt speedbar sb-image ezimage
dframe find-func cc-langs cc-mode cc-fonts cc-guess cc-menus cc-cmds
cc-styles cc-align cc-engine cc-vars cc-defs preview prv-emacs
reftex-dcr reftex-auc reftex reftex-vars bib-cite tex-fold dbus xml
tex-bar tex-buf toolbar-x font-latex latex tex-style tex latexenc shell
pcomplete misearch multi-isearch bug-reference add-log vc-git help-mode
eieio eieio-core package act-up desktop frameset ghostedit
ghostedit-stopwords-en which-func imenu slime-banner slime-asdf grep
slime-fancy slime-trace-dialog slime-fontifying-fu slime-package-fu
slime-references slime-compiler-notes-tree slime-scratch
slime-presentations bridge slime-fuzzy slime-fancy-trace
slime-fancy-inspector slime-c-p-c slime-editing-commands slime-autodoc
eldoc slime-repl elp slime-parse slime derived edmacro kmacro gud
compile apropos etags arc-mode archive-mode noutline outline pp comint
ansi-color ring hyperspec browse-url slime-autoloads imaxima-autoloads
load-emacs-plugins aquamacs-mode-defaults auctex-config server
preview-latex tex-site auto-loads aquamacs-aux savehist
one-buffer-one-frame byte-opt bytecomp byte-compile cconv
smart-frame-positioning drews_init color-theme-autoloads view saveplace
visual-line disp-table aquamacs-bug aquamacs-autoface-mode
aquamacs-editing sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr
mail-utils recentf tree-widget cus-edit wid-edit osxkeys
emulate-mac-keyboard-mode frame-cmds strings misc-fns thingatpt+
thingatpt frame-fns avoid aquamacs-mac-fontsets fit-frame
aquamacs-frame-setup aquamacs-tabbar tabbar-window cl-macs cl gv
cl-loaddefs cl-lib cus-start cus-load tabbar easy-mmode
load-emacs-pre-plugins aquamacs-site-start cocoa-compatibility
matlab-load smart-dnd revive filladapt aquamacs-redo check-for-updates
aquamacs-menu aquamacs osx_defaults aquamacs-tool-bar time-date
mac-extra-functions aquamacs-tools aquamacs-macros advice parse-time
timezone paren delsel cua-base help-fns easymenu tooltip electric
uniquify ediff-hook vc-hooks lisp-float-type mwheel ns-win tool-bar dnd
fontset image regexp-opt fringe tabulated-list newcomment lisp-mode
prog-mode register page menu-bar rfn-eshadow timer select scroll-bar
mouse jit-lock font-lock syntax facemenu font-core frame cham georgian
utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean
japanese hebrew greek romanian slovak czech european ethiopic indian
cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev
minibuffer nadvice loaddefs button faces cus-face macroexp files
text-properties overlay sha1 md5 base64 format env code-pages mule
custom widget hashtable-print-readable backquote make-network-process
dbusbind cocoa ns multi-tty emacs)

Memory information:
((conses 16 423327 55403)
(symbols 48 42157 0)
(miscs 40 885 908)
(strings 32 83928 8080)
(string-bytes 1 2578816)
(vectors 16 37372)
(vector-slots 8 1627074 77406)
(floats 8 881 364)
(intervals 56 2963 220)
(buffers 960 50))

Command line: (/Users/dr/ae24.git/nextstep/Aquamacs.app/Contents/MacOS/Aquamacs)

PATH: /opt/local/bin:/opt/local/sbin:/Users/dr/Applications/AndroidSDK/sdk/platform-tools:/Users/dr/.carton/bin:/Users/dr/Applications/AllegroCL:/Library/Frameworks/Python.framework/Versions/Current/bin:/usr/local/mysql-5.1.48-osx10.6-x86_64/bin/:/opt/local/lib/postgresql82/bin:/usr/local/git/bin:/usr/local/bin:/Applications/Octave.app/Contents/Resources:/Applications/Octave.app/Contents/Resources/bin:/Users/dr/Applications/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/X11/bin:/usr/local/git/bin:/usr/texbin:/Developer/Platforms/iPhoneFOSS.platform/Developer/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/texbin:/usr/local/texlive/2014/bin:/Library/Application Support/Aquamacs Emacs/Imaxima Plugin/Maxima.app/Contents/Resources/bin:/Library/Application Support/Aquamacs Emacs/Imaxima Plugin/Gnuplot.app/Contents/Resources/bin

exec-path: (/opt/local/bin /opt/local/sbin /Users/dr/Applications/AndroidSDK/sdk/platform-tools /Users/dr/.carton/bin /Users/dr/Applications/AllegroCL /Library/Frameworks/Python.framework/Versions/Current/bin /usr/local/mysql-5.1.48-osx10.6-x86_64/bin/ /opt/local/lib/postgresql82/bin /usr/local/git/bin /usr/local/bin /Applications/Octave.app/Contents/Resources /Applications/Octave.app/Contents/Resources/bin /Users/dr/Applications/bin /usr/bin /bin /usr/sbin /sbin /usr/local/bin /opt/X11/bin /usr/local/git/bin /usr/texbin /Developer/Platforms/iPhoneFOSS.platform/Developer/bin /usr/bin /bin /usr/sbin /sbin /Users/dr/ae24.git/nextstep/Aquamacs.app/Contents/MacOS/libexec /Users/dr/ae24.git/nextstep/Aquamacs.app/Contents/MacOS/bin /usr/local/texlive/2014/bin /Library/Application Support/Aquamacs Emacs/Imaxima Plugin/Maxima.app/Contents/Resources/bin /Library/Application Support/Aquamacs Emacs/Imaxima Plugin/Gnuplot.app/Contents/Resources/bin)



Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#18512; Package emacs. (Sat, 20 Sep 2014 07:25:01 GMT) Full text and rfc822 format available.

Message #8 received at 18512 <at> debbugs.gnu.org (full text, mbox):

From: Michael Albinus <michael.albinus <at> gmx.de>
To: David Reitter <david.reitter <at> gmail.com>
Cc: 18512 <at> debbugs.gnu.org
Subject: Re: bug#18512: 24.3.93;
 tramp persistency file: incompatible with old versions? Tramp won't
 start!
Date: Sat, 20 Sep 2014 09:24:15 +0200
David Reitter <david.reitter <at> gmail.com> writes:

> After upgrading to [Aquamacs based on] a pre-release of 24.4, a user
> complained about Tramp not working.
>
> Some investigation showed that the error was reproducible with a 
>
> (load “tramp” nil)
>
> and it occurred when it tried to load the file specified in
> `tramp-persistency-file-name’.  The error message was:
>
> eval-buffer: Invalid function: (["scpc" "dr” “xxx.yyy.org" nil]
> ("uname" "Darwin 9.8.0") ("test" "test") ("remote-path" ("/usr/bin"
> "/bin" "/usr/sbin" "/sbin" "/usr/local/bin")) ("remote-shell"
> "/bin/sh") ("~" "/Users/dr") ("readlink" nil) ("perl-file-spec" t)
> ("perl-cwd-realpath" t) ("perl" "\\perl") …)

[...]

> This does not look like a file that can be loaded with `load’.
>
> It was probably produced with an older Emacs version, but judging from
> the file date, probably just the previous release 23.3.
>
> Deleting the file makes the error go away.  Tramp works just fine then.
>
> I think Emacs should be smart enough to handle the version upgrade.
> Perhaps re-generating the file if reading it produces an exception
> should be a transparent and automatic measure.

It's not about version incompatibility.

Tramp's persistency file is not something which shall be loaded by (load
“tramp” nil). Its default location is (locate-user-emacs-file "tramp")

If the directory is in the load-path, and if it is before the directory
where Tramp *.el[c] files reside, it might be that (load “tramp” nil)
takes the wrong file. Maybe, we shall move it either into a subdirectory
of "~/.emacs.d/", or we shall give it another name.

Hmm, I won't do it just now, because I'll be almost offline for the next
3 weeks (just email connection). I'll check it when I return; maybe
somebody has a better proposal.

Best regards, Michael.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#18512; Package emacs. (Sat, 20 Sep 2014 08:10:02 GMT) Full text and rfc822 format available.

Message #11 received at 18512 <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: Michael Albinus <michael.albinus <at> gmx.de>
Cc: David Reitter <david.reitter <at> gmail.com>, 18512 <at> debbugs.gnu.org
Subject: Re: bug#18512: 24.3.93;
 tramp persistency file: incompatible with old versions? Tramp won't
 start!
Date: Sat, 20 Sep 2014 04:09:42 -0400
Michael Albinus wrote:

> Tramp's persistency file is not something which shall be loaded by (load
> "tramp" nil). Its default location is (locate-user-emacs-file "tramp")
>
> If the directory is in the load-path, and if it is before the directory
> where Tramp *.el[c] files reside, it might be that (load "tramp" nil)
> takes the wrong file. Maybe, we shall move it either into a subdirectory
> of "~/.emacs.d/", or we shall give it another name.

We already added a startup warning if user-emacs-directory is in
load-path, for precisely this kind of reason. (Eg calc has similar issues.)

user-emacs-directory is not in load-path by default, so the question is;
how did it come to be in load-path, and why was the warning not seen?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#18512; Package emacs. (Sat, 20 Sep 2014 08:15:01 GMT) Full text and rfc822 format available.

Message #14 received at 18512 <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: Michael Albinus <michael.albinus <at> gmx.de>
Cc: David Reitter <david.reitter <at> gmail.com>, 18512 <at> debbugs.gnu.org
Subject: Re: bug#18512: 24.3.93;
 tramp persistency file: incompatible with old versions? Tramp won't
 start!
Date: Sat, 20 Sep 2014 04:14:47 -0400
Glenn Morris wrote:

> We already added a startup warning if user-emacs-directory is in
> load-path, for precisely this kind of reason. (Eg calc has similar issues.)
>
> user-emacs-directory is not in load-path by default, so the question is;
> how did it come to be in load-path, and why was the warning not seen?

And indeed there is exactly the issue with calc in the original report:

>> Load-path shadows:
>> /Users/dr/Library/Application Support/Aquamacs Emacs/calc hides /Users/dr/ae24.git/nextstep/Aquamacs.app/Contents/Resources/lisp/calc/calc




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#18512; Package emacs. (Sat, 20 Sep 2014 09:52:02 GMT) Full text and rfc822 format available.

Message #17 received at 18512 <at> debbugs.gnu.org (full text, mbox):

From: Michael Albinus <michael.albinus <at> gmx.de>
To: Glenn Morris <rgm <at> gnu.org>
Cc: David Reitter <david.reitter <at> gmail.com>, 18512 <at> debbugs.gnu.org
Subject: Re: bug#18512: 24.3.93;
 tramp persistency file: incompatible with old versions? Tramp won't
 start!
Date: Sat, 20 Sep 2014 11:51:30 +0200
Glenn Morris <rgm <at> gnu.org> writes:

> Glenn Morris wrote:
>
>> We already added a startup warning if user-emacs-directory is in
>> load-path, for precisely this kind of reason. (Eg calc has similar issues.)
>>
>> user-emacs-directory is not in load-path by default, so the question is;
>> how did it come to be in load-path, and why was the warning not seen?
>
> And indeed there is exactly the issue with calc in the original report:
>
>>> Load-path shadows:
>>> /Users/dr/Library/Application Support/Aquamacs Emacs/calc hides
>>> /Users/dr/ae24.git/nextstep/Aquamacs.app/Contents/Resources/lisp/calc/calc

So you recommend to change nothing in Tramp, right? That's what I could
do best :-)

Best regards, Michael.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#18512; Package emacs. (Sat, 20 Sep 2014 20:46:01 GMT) Full text and rfc822 format available.

Message #20 received at 18512 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Michael Albinus <michael.albinus <at> gmx.de>
Cc: Glenn Morris <rgm <at> gnu.org>, 18512 <at> debbugs.gnu.org,
 David Reitter <david.reitter <at> gmail.com>
Subject: Re: bug#18512: 24.3.93;
 tramp persistency file: incompatible with old versions? Tramp won't
 start!
Date: Sat, 20 Sep 2014 16:45:01 -0400
> So you recommend to change nothing in Tramp, right?

Yes, but please do it quickly!


        Stefan




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#18512; Package emacs. (Sun, 21 Sep 2014 02:39:02 GMT) Full text and rfc822 format available.

Message #23 received at 18512 <at> debbugs.gnu.org (full text, mbox):

From: David Reitter <david.reitter <at> gmail.com>
To: Glenn Morris <rgm <at> gnu.org>
Cc: 18512 <at> debbugs.gnu.org, Michael Albinus <michael.albinus <at> gmx.de>
Subject: Re: bug#18512: 24.3.93;
 tramp persistency file: incompatible with old versions? Tramp won't
 start!
Date: Sat, 20 Sep 2014 22:38:48 -0400
On Sep 20, 2014, at 4:09 AM, Glenn Morris <rgm <at> gnu.org> wrote:
> 
> We already added a startup warning if user-emacs-directory is in
> load-path, for precisely this kind of reason. (Eg calc has similar issues.)
> 
> user-emacs-directory is not in load-path by default, so the question is;
> how did it come to be in load-path, and why was the warning not seen?

That’s because the warning is given only if the directory name is .emacs.d (string-match-p "/[._]emacs\\.d/?\\'" dir).

Had I seen this warning, I would have not have set the load-path default in Aquamacs to include user-emacs-directory.
At this time, it’s an inconvenient change for the user base… I’m not sure whether to leave it as is, or to change `user-emacs-directory', tweaking `locate-user-emacs-file’ to move files like “tramp.el” into a new subdirectory.



Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#18512; Package emacs. (Sun, 21 Sep 2014 13:53:01 GMT) Full text and rfc822 format available.

Message #26 received at 18512 <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: David Reitter <david.reitter <at> gmail.com>
Cc: 18512 <at> debbugs.gnu.org, Michael Albinus <michael.albinus <at> gmx.de>
Subject: Re: bug#18512: 24.3.93;
 tramp persistency file: incompatible with old versions? Tramp won't
 start!
Date: Sun, 21 Sep 2014 09:52:12 -0400
David Reitter wrote:

> Had I seen this warning, I would have not have set the load-path
> default in Aquamacs to include user-emacs-directory.

This is an Aquamacs-specific problem then.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#18512; Package emacs. (Sun, 21 Sep 2014 18:26:02 GMT) Full text and rfc822 format available.

Message #29 received at 18512 <at> debbugs.gnu.org (full text, mbox):

From: David Reitter <david.reitter <at> gmail.com>
To: Glenn Morris <rgm <at> gnu.org>
Cc: 18512 <at> debbugs.gnu.org, Michael Albinus <michael.albinus <at> gmx.de>
Subject: Re: bug#18512: 24.3.93;
 tramp persistency file: incompatible with old versions? Tramp won't
 start!
Date: Sun, 21 Sep 2014 14:25:26 -0400
On Sep 21, 2014, at 9:52 AM, Glenn Morris <rgm <at> gnu.org> wrote:

> David Reitter wrote:
> 
>> Had I seen this warning, I would have not have set the load-path
>> default in Aquamacs to include user-emacs-directory.
> 
> This is an Aquamacs-specific problem then.

The questionable configuration is, of course.

The lack of warning is not.  I pointed out what the bug is in my other e-mail.



Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#18512; Package emacs. (Sun, 21 Sep 2014 21:37:01 GMT) Full text and rfc822 format available.

Message #32 received at 18512 <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: David Reitter <david.reitter <at> gmail.com>
Cc: 18512 <at> debbugs.gnu.org, Michael Albinus <michael.albinus <at> gmx.de>
Subject: Re: bug#18512: 24.3.93;
 tramp persistency file: incompatible with old versions? Tramp won't
 start!
Date: Sun, 21 Sep 2014 17:36:19 -0400
David Reitter wrote:

> The lack of warning is not.  I pointed out what the bug is in my other
> e-mail

user-emacs-directory is a constant. You should not have changed it.




Changed bug title to 'no startup warning if user-emacs-directory is modfied and added to load-path' from '24.3.93; tramp persistency file: incompatible with old versions? Tramp won't start!' Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Sun, 21 Sep 2014 21:48:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#18512; Package emacs. (Sun, 21 Sep 2014 22:55:02 GMT) Full text and rfc822 format available.

Message #37 received at 18512 <at> debbugs.gnu.org (full text, mbox):

From: David Reitter <david.reitter <at> gmail.com>
To: Glenn Morris <rgm <at> gnu.org>
Cc: 18512 <at> debbugs.gnu.org, Michael Albinus <michael.albinus <at> gmx.de>
Subject: Re: bug#18512: 24.3.93;
 tramp persistency file: incompatible with old versions? Tramp won't
 start!
Date: Sun, 21 Sep 2014 18:54:47 -0400
On Sep 21, 2014, at 5:36 PM, Glenn Morris <rgm <at> gnu.org> wrote:

> David Reitter wrote:
> 
>> The lack of warning is not.  I pointed out what the bug is in my other
>> e-mail
> 
> user-emacs-directory is a constant. You should not have changed it.

You’re right, it’s a constant.  If you do have a constant for this, assuming that the file name is .emacs.d or similar in startup.el is obviously poor style.

I changed it because the home directory is not where applications should store files in the Mac OSX system.
Hiding the folder with a dot is helpful, because the directory does not show up in Finder.  Yet, the correct place for such files would be in ~/Library/Preferences/Emacs/.
There is a special case for Windows, perhaps because the dot-filename syntax won’t work.

There are differences in philosophy between GNU Emacs and Aquamacs Emacs.  This may be one of them.








Reply sent to Glenn Morris <rgm <at> gnu.org>:
You have taken responsibility. (Sat, 04 Oct 2014 18:59:01 GMT) Full text and rfc822 format available.

Notification sent to David Reitter <david.reitter <at> gmail.com>:
bug acknowledged by developer. (Sat, 04 Oct 2014 18:59:02 GMT) Full text and rfc822 format available.

Message #42 received at 18512-done <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: 18512-done <at> debbugs.gnu.org
Subject: Re: bug#18512: 24.3.93;
 tramp persistency file: incompatible with old versions? Tramp won't
 start!
Date: Sat, 04 Oct 2014 14:58:45 -0400
Version: 25.1

David Reitter wrote:

> There are differences in philosophy between GNU Emacs and Aquamacs
> Emacs.

And you get to fix the bugs that result from that! :)
But I applied this:

*** lisp/startup.el	2014-10-02 13:26:23 +0000
--- lisp/startup.el	2014-10-04 18:53:16 +0000
***************
*** 1286,1292 ****
    (let (warned)
      (dolist (dir load-path)
        (and (not warned)
! 	   (string-match-p "/[._]emacs\\.d/?\\'" dir)
  	   (string-equal (file-name-as-directory (expand-file-name dir))
  			 (expand-file-name user-emacs-directory))
  	   (setq warned t)
--- 1286,1296 ----
    (let (warned)
      (dolist (dir load-path)
        (and (not warned)
! 	   (string-match-p
! 	    (format "/%s/?\\'"
! 		    (regexp-quote
! 		     (file-name-nondirectory
! 		      (directory-file-name user-emacs-directory)))) dir)
  	   (string-equal (file-name-as-directory (expand-file-name dir))
  			 (expand-file-name user-emacs-directory))
  	   (setq warned t)





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#18512; Package emacs. (Sat, 04 Oct 2014 22:35:02 GMT) Full text and rfc822 format available.

Message #45 received at 18512 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: 18512 <at> debbugs.gnu.org
Cc: rgm <at> gnu.org, david.reitter <at> gmail.com
Subject: Re: bug#18512: 24.3.93;
 tramp persistency file: incompatible with old versions? Tramp won't
 start!
Date: Sat, 04 Oct 2014 18:34:04 -0400
> *** lisp/startup.el	2014-10-02 13:26:23 +0000
> --- lisp/startup.el	2014-10-04 18:53:16 +0000
> ***************
> *** 1286,1292 ****
>     (let (warned)
>       (dolist (dir load-path)
>         (and (not warned)
> ! 	   (string-match-p "/[._]emacs\\.d/?\\'" dir)
>   	   (string-equal (file-name-as-directory (expand-file-name dir))
>   			 (expand-file-name user-emacs-directory))
>   	   (setq warned t)
> --- 1286,1296 ----
>     (let (warned)
>       (dolist (dir load-path)
>         (and (not warned)
> ! 	   (string-match-p
> ! 	    (format "/%s/?\\'"
> ! 		    (regexp-quote
> ! 		     (file-name-nondirectory
> ! 		      (directory-file-name user-emacs-directory)))) dir)
>   	   (string-equal (file-name-as-directory (expand-file-name dir))
>   			 (expand-file-name user-emacs-directory))
>   	   (setq warned t)

Why not simply remove the (string-match-p "/[._]emacs\\.d/?\\'" dir) test?
AFAICT the next string-equal test (which should/could probably be
replaced by a file-equal-p test) is already more strict than what
you added.


        Stefan




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#18512; Package emacs. (Sun, 05 Oct 2014 02:10:01 GMT) Full text and rfc822 format available.

Message #48 received at 18512 <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: david.reitter <at> gmail.com, 18512 <at> debbugs.gnu.org
Subject: Re: bug#18512: 24.3.93;
 tramp persistency file: incompatible with old versions? Tramp won't
 start!
Date: Sat, 04 Oct 2014 22:09:00 -0400
Stefan Monnier wrote:

>> ! 	   (string-match-p
>> ! 	    (format "/%s/?\\'"
>> ! 		    (regexp-quote
>> ! 		     (file-name-nondirectory
>> ! 		      (directory-file-name user-emacs-directory)))) dir)
>>   	   (string-equal (file-name-as-directory (expand-file-name dir))
>>   			 (expand-file-name user-emacs-directory))
>>   	   (setq warned t)
>
> Why not simply remove the (string-match-p "/[._]emacs\\.d/?\\'" dir) test?

It may have been a pointless attempt to avoid statting the file-system
unless it looked like it was going to be needed. (Does expand-file-name
even do that?)




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#18512; Package emacs. (Mon, 06 Oct 2014 01:12:01 GMT) Full text and rfc822 format available.

Message #51 received at 18512 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Glenn Morris <rgm <at> gnu.org>
Cc: david.reitter <at> gmail.com, 18512 <at> debbugs.gnu.org
Subject: Re: bug#18512: 24.3.93;
 tramp persistency file: incompatible with old versions? Tramp won't
 start!
Date: Sun, 05 Oct 2014 21:11:00 -0400
>>> ! 	   (string-match-p
>>> ! 	    (format "/%s/?\\'"
>>> ! 		    (regexp-quote
>>> ! 		     (file-name-nondirectory
>>> ! 		      (directory-file-name user-emacs-directory)))) dir)
>>> (string-equal (file-name-as-directory (expand-file-name dir))
>>> (expand-file-name user-emacs-directory))
>>> (setq warned t)
>> Why not simply remove the (string-match-p "/[._]emacs\\.d/?\\'" dir) test?
> It may have been a pointless attempt to avoid statting the file-system
> unless it looked like it was going to be needed. (Does expand-file-name
> even do that?)

No, expand-file-name doesn't touch the file-system.  And neither does
file-name-as-directory.  These are just string operations.
Using file-equal-p would, OTOH.


        Stefan




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Mon, 03 Nov 2014 12:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 10 years and 282 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.