This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: new-style Cygwin symlinks, NTEmacs' dired mode, and ls-lisp.el


To answer a couple of the respondents to my post:

Indeed setting the insert-program to "ls" works, yet it is significantly
slower than the code I posted.

With the code I posted, I find I can follow MS-generated and
Cygwin-generated symlinks in dired.

I can also use the S and Y commands to create new symlinks in dired.  I
get an Emacs error when I do the command, but the symlink is in fact
created and can be viewed normally by refreshing ("g").  I haven't tried
to fix this yet; I think it is easy.

One cannot make symlinks to symlinks, however; you get a second symlink
to the target.

The code in ls-lisp.el v 1.22 fails to recognize a few MS shortcuts.  I
have not figured a reasonable way to include the shortcut file in an
email.

The following is an improvement on the code I posted; this
save-excursion should replace the earlier one.  It's still
reverse-engineered rather than based confidently on specs.

(save-excursion
			(let* ((delimiter (buffer-substring 77 79))
			       (delimiter2 (progn
					     (forward-char 78)
					     (search-forward
delimiter)))
			       (comment (buffer-substring 79 (-
delimiter2 2)))
;;;			       (target (buffer-substring delimiter2
(point-max)))
			       )
;;;			  (message "MSS | delimiter: %s" delimiter)
;;;			  (message "MSS | delimiter2: %s" delimiter2)
;;			  (message "MSS | comment: %s" comment)
;;			  (message "MSS | target: %s" target)
			  comment))






--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]