emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

address@hidden: file-remote-p malfunctions at site-start (file-name-hand


From: Richard Stallman
Subject: address@hidden: file-remote-p malfunctions at site-start (file-name-handler-alist init)]
Date: Sun, 25 Mar 2007 23:52:48 -0400

Would someone please DTRT and ack?

------- Start of forwarded message -------
X-Spam-Status: No, score=0.0 required=5.0 tests=UNPARSEABLE_RELAY 
        autolearn=failed version=3.1.0
DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta;
        
h=domainkey-signature:received:received:mime-version:content-transfer-encoding:message-id:content-type:to:from:subject:date:x-mailer;
        
b=s7BXyK+4GhOwW5H7jKdX9z5Vz4neRHIL2YqUkZgGtU6dWuhYC6BcFujLBLTrEPa09HRu0Di1NCR+jtLHuvR4f9wY8gC61A0libpAcUGY0k3ZK74H15WvMZn8c8NIzrWp3RcglmnIRhACDhqT0m5q3Y7doc4c2PboX/AjM3A+Cdw=
Mime-Version: 1.0 (Apple Message framework v752.2)
Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed
To: address@hidden
From: David Reitter <address@hidden>
Date: Fri, 23 Mar 2007 21:53:59 +0000
Subject: file-remote-p malfunctions at site-start (file-name-handler-alist
        init)

If a site-start.el file is created with the following contents:

(print file-name-handler-alist)
(print (file-remote-p "/ssh:address@hidden:/home/dreitter/test2"))

the output of the last expression is nil for me.
It should (correctly) be non-nil.


The reason for that is that `file-name-handler-alist' does not  
contain handlers for tramp file names when the site-start file is  
loaded - at a later point, the appropriate handlers are added.

The practical relevance is that when users (or site or distribution  
admins) load and turn on recentf-mode from a site-start file together  
with a `file-remote-p' predicate in `recentf-keep', then all recent- 
file entries containing a tramp path will be purged. That's very  
inconvenient.

The problem would go away if `file-name-handler-alist' was correctly  
initialized before site-start files are executed. Additionally,  
please consider defining the handler function for tramp files  
somewhere outside of tramp so that `file-remote-p' doesn't cause  
tramp to load just because it is checked for some file.





If Emacs crashed, and you have the Emacs process in the gdb debugger,
please include the output from the following gdb commands:
     `bt full' and `xbacktrace'.
If you would like to further debug the crash, please read the file
/Applications/Emacs.app/Contents/Resources/etc/DEBUG for instructions.


In GNU Emacs 22.0.96.1 (powerpc-apple-darwin7.9.0, Carbon Version 1.6.0)
of 2007-03-22 on rodrigues.inf.ed.ac.uk
Windowing system distributor `Apple Inc.', version 10.4.9
configured using `configure  '--without-x' '--prefix=/usr/local''

Important settings:
   value of $LC_ALL: nil
   value of $LC_COLLATE: nil
   value of $LC_CTYPE: nil
   value of $LC_MESSAGES: nil
   value of $LC_MONETARY: nil
   value of $LC_NUMERIC: nil
   value of $LC_TIME: nil
   value of $LANG: nil
   locale-coding-system: iso-8859-1
   default-enable-multibyte-characters: t

Major mode: Lisp Interaction

Minor modes in effect:
   encoded-kbd-mode: t
   tooltip-mode: t
   tool-bar-mode: t
   mouse-wheel-mode: t
   menu-bar-mode: t
   file-name-shadow-mode: t
   global-font-lock-mode: t
   font-lock-mode: t
   blink-cursor-mode: t
   unify-8859-on-encoding-mode: t
   utf-translate-cjk-mode: t
   auto-compression-mode: t
   line-number-mode: t

Recent input:
<down-mouse-1> <mouse-1> <help-echo> <help-echo> <help-echo>
<menu-bar> <help-menu> <report-emacs-bug>

Recent messages:

(("\\.Z\\(~\\|\\.~[0-9]+~\\)?\\'\\|\\.bz2\\(~\\|\\.~[0-9]+~\\)?\\'\\|\ 
\.tbz\\'\\|\\.tgz\\'\\|\\.g?z\\(~\\|\\.~[0-9]+~\\)?\\'\\|\\.dz\\'" .  
jka-compr-handler) ("\\`/:" . file-name-non-special))

nil

For information about the GNU Project and its goals, type C-h C-p. [2  
times]
Loading emacsbug...
Loading regexp-opt...done
Loading emacsbug...done
Loading encoded-kb...done



_______________________________________________
emacs-pretest-bug mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug
------- End of forwarded message -------




reply via email to

[Prev in Thread] Current Thread [Next in Thread]