all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* 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
* 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

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
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
  -- strict thread matches above, loose matches on Subject: below --
2004-07-26  2:28 Jasen

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.