unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* find a file and put it in a window
@ 2004-07-26  2:28 Jasen
  0 siblings, 0 replies; 5+ messages in thread
From: Jasen @ 2004-07-26  2:28 UTC (permalink / raw)


Hi all,

Would someone please advise me how can I resolve this problem:

I would like to find a file in a directory through a shell command:

;; Get the newest version of file
   (setq file (string (shell command "ls -tc 
C:\\dir1\\dir2\\dir3/file*.txt | head -1")))

;; Put the file is a windows
   (find-file-other-window file)

The problem is that either Emacs or Windows can't interpret the full
file name along with directory path correctly and I don't know how to
fix it?

Thanks,
Austin

^ permalink raw reply	[flat|nested] 5+ messages in thread
* find a file and put it in a window
@ 2004-07-26  2:28 Jasen
  2004-07-26  4:57 ` Eli Zaretskii
       [not found] ` <mailman.1472.1090814571.1960.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 5+ messages in thread
From: Jasen @ 2004-07-26  2:28 UTC (permalink / raw)


Hi all,

Would someone please advise me how can I resolve this problem:

I would like to find a file in a directory through a shell command:

;; Get the newest version of file
   (setq file (string (shell command "ls -tc 
C:\\dir1\\dir2\\dir3/file*.txt | head -1")))

;; Put the file is a windows
   (find-file-other-window file)

The problem is that either Emacs or Windows can't interpret the full
file name along with directory path correctly and I don't know how to
fix it?

Thanks,
Austin

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

end of thread, other threads:[~2004-07-26 18:26 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-07-26  2:28 find a file and put it in a window Jasen
  -- strict thread matches above, loose matches on Subject: below --
2004-07-26  2:28 Jasen
2004-07-26  4:57 ` Eli Zaretskii
     [not found] ` <mailman.1472.1090814571.1960.help-gnu-emacs@gnu.org>
2004-07-26  5:34   ` Jasen
2004-07-26 18:26     ` Eli Zaretskii

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