unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Problem with expand-file-name ?
@ 2007-08-31 12:17 Dmitry Antipov
  2007-08-31 15:03 ` Thien-Thi Nguyen
  0 siblings, 1 reply; 2+ messages in thread
From: Dmitry Antipov @ 2007-08-31 12:17 UTC (permalink / raw)
  To: emacs-devel

After a fresh bootstrap, try (from 'src' subdirectory of the tree):

$ ./emacs --no-site-file --no-init-file -batch -f batch-byte-recompile-directory ../lisp
Checking /home/user/tmp/Emacs/emacs/lisp...
Checking /home/user/tmp/Emacs/emacs/lisp/calc...
Checking /home/user/tmp/Emacs/emacs/lisp/calendar...
Checking /home/user/tmp/Emacs/emacs/lisp/emacs-lisp...
Checking /home/user/tmp/Emacs/emacs/lisp/emulation...
Checking /home/user/tmp/Emacs/emacs/lisp/erc...
Checking /home/user/tmp/Emacs/emacs/lisp/eshell...
Checking /home/user/tmp/Emacs/emacs/lisp/gnus...
Checking /home/user/tmp/Emacs/emacs/lisp/international...
Checking /home/user/tmp/Emacs/emacs/lisp/language...
Checking /home/user/tmp/Emacs/emacs/lisp/mail...
Checking /home/user/tmp/Emacs/emacs/lisp/mh-e...
Checking /home/user/tmp/Emacs/emacs/lisp/net...
Checking /home/user/tmp/Emacs/emacs/lisp/obsolete...
Checking /home/user/tmp/Emacs/emacs/lisp/play...
Checking /home/user/tmp/Emacs/emacs/lisp/progmodes...
Checking /home/user/tmp/Emacs/emacs/lisp/term...
Checking /home/user/tmp/Emacs/emacs/lisp/textmodes...
Checking /home/user/tmp/Emacs/emacs/lisp/toolbar...
Checking /home/user/tmp/Emacs/emacs/lisp/url...
Done (Total of 0 files compiled)

That's OK. But:

$ ./emacs --no-site-file --no-init-file -batch -f batch-byte-recompile-directory ../lisp/textmodes
Checking /home/user/tmp/Emacs/emacs/lisp/lisp/textmodes...
Error: Opening directory: no such file or directory, /home/user/tmp/Emacs/emacs/lisp/lisp/textmodes
Done (Total of 0 files compiled)

Note 'lisp/lisp' here - probably this is a strange thing done by expand-file-name.

Dmitry

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

* Re: Problem with expand-file-name ?
  2007-08-31 12:17 Problem with expand-file-name ? Dmitry Antipov
@ 2007-08-31 15:03 ` Thien-Thi Nguyen
  0 siblings, 0 replies; 2+ messages in thread
From: Thien-Thi Nguyen @ 2007-08-31 15:03 UTC (permalink / raw)
  To: Dmitry Antipov; +Cc: emacs-devel

() Dmitry Antipov <dmantipov@yandex.ru>
() Fri, 31 Aug 2007 16:17:47 +0400

   Note 'lisp/lisp' here - probably this is a strange
   thing done by expand-file-name.

the following patch fixes this problem.  light testing w/ "make
compile" in lisp/ doesn't show any problems so i will install it
in a couple days unless there are objections in the meantime.

thi

______________________________________________________________
*** bytecomp.el	27 Aug 2007 04:00:15 -0000	2.207
--- bytecomp.el	31 Aug 2007 14:59:56 -0000
***************
*** 1552,1558 ****
      ;; compilation-mode copies value of default-directory.
      (unless (eq major-mode 'compilation-mode)
        (compilation-mode))
!     (let ((directories (list (expand-file-name directory)))
  	  (default-directory default-directory)
  	  (skip-count 0)
  	  (fail-count 0)
--- 1552,1558 ----
      ;; compilation-mode copies value of default-directory.
      (unless (eq major-mode 'compilation-mode)
        (compilation-mode))
!     (let ((directories (list default-directory))
  	  (default-directory default-directory)
  	  (skip-count 0)
  	  (fail-count 0)

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

end of thread, other threads:[~2007-08-31 15:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-31 12:17 Problem with expand-file-name ? Dmitry Antipov
2007-08-31 15:03 ` Thien-Thi Nguyen

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).