all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: David PONCE <david.ponce@wanadoo.fr>
Cc: emacs-devel@gnu.org
Subject: Re: On DOS/Windows, unnecessary load of tramp by `file-relative-name'
Date: Thu, 24 Apr 2003 16:44:59 +0200 (CEST)	[thread overview]
Message-ID: <21449411.1051195499922.JavaMail.www@wwinf9802> (raw)

Hi Kai,

> Instead of using (eq (aref filename 0) ?/), how about using
> (file-name-absolute-p filename)?  Does that work?

Yes that works!  And that is a better solution ;-)
Thanks!

Here is a new patch:

Index: lisp/files.el
===================================================================
RCS file: /cvsroot/emacs/emacs/lisp/files.el,v
retrieving revision 1.653
diff -c -r1.653 files.el
*** lisp/files.el	24 Apr 2003 01:58:40 -0000	1.653
--- lisp/files.el	24 Apr 2003 14:35:48 -0000
***************
*** 2909,2917 ****
  		 (string-match re directory)
  		 (substring directory 0 (match-end 0))))))))
  	  filename
!         (unless (eq (aref filename 0) ?/)
  	  (setq filename (concat "/" filename)))
!         (unless (eq (aref directory 0) ?/)
  	  (setq directory (concat "/" directory)))
          (let ((ancestor ".")
  	      (filename-dir (file-name-as-directory filename)))
--- 2909,2917 ----
  		 (string-match re directory)
  		 (substring directory 0 (match-end 0))))))))
  	  filename
!         (unless (file-name-absolute-p filename)
  	  (setq filename (concat "/" filename)))
!         (unless (file-name-absolute-p directory)
  	  (setq directory (concat "/" directory)))
          (let ((ancestor ".")
  	      (filename-dir (file-name-as-directory filename)))

             reply	other threads:[~2003-04-24 14:44 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-04-24 14:44 David PONCE [this message]
2003-04-25 13:23 ` On DOS/Windows, unnecessary load of tramp by `file-relative-name' Kai Großjohann
  -- strict thread matches above, loose matches on Subject: below --
2003-04-24 10:54 David PONCE
2003-04-24 14:12 ` Kai Großjohann
2003-04-29 21:38 ` Stefan Monnier
2003-04-30  8:21   ` Kai Großjohann

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=21449411.1051195499922.JavaMail.www@wwinf9802 \
    --to=david.ponce@wanadoo.fr \
    --cc=emacs-devel@gnu.org \
    /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.