delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
From: | "Matt Swift" <swift AT alum DOT mit DOT edu> |
To: | <cygwin AT cygwin DOT com> |
Subject: | RE: new-style Cygwin symlinks, NTEmacs' dired mode, and ls-lisp.el |
Date: | Mon, 8 Jul 2002 13:10:04 -0400 |
Message-ID: | <000001c226a2$4da03e60$5dff3018@swift.xxx> |
MIME-Version: | 1.0 |
X-Priority: | 3 (Normal) |
X-MSMail-Priority: | Normal |
In-reply-to: | <00cf01c223aa$d28db530$75247bd5@Minotaur> |
Importance: | Normal |
X-MimeOLE: | Produced By Microsoft MimeOLE V6.00.2600.0000 |
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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |