all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* file-symlink-p in NTEmacs 21.3
@ 2003-05-06 13:44 Dr Francis J. Wright
  0 siblings, 0 replies; only message in thread
From: Dr Francis J. Wright @ 2003-05-06 13:44 UTC (permalink / raw)


The original version is a built-in function.  According to (elisp) Magic
File Names, it should support magic file name handlers, but it does not seem
to.  Below is my attempt to fix this in Lisp, which seems to work.  I have a
Lisp library that provides support for Windows shortcut files as symlinks,
and to do that in general I use a magic file name handler, so I need
file-symlink-p to support magic file name handlers.

(defadvice file-symlink-p (around file-symlink-p-advice activate compile)
   (let ((handler (find-file-name-handler filename 'file-symlink-p)))
     (if handler
         (funcall handler 'file-symlink-p filename)
       ad-do-it)))

I suspect that this problem is specific to NTEmacs and that in NTEmacs this
function always returns nil, although I have not looked at the C code.

---

Dr Francis J. Wright
School of Mathematical Sciences, Queen Mary
University of London, Mile End Road, London E1 4NS, UK
Tel: 020 7882 5453 (direct);  Fax: 020 8981 9587 (dept.)
F.J.Wright@qmul.ac.uk;  http://centaur.maths.qmul.ac.uk/

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-05-06 13:44 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-05-06 13:44 file-symlink-p in NTEmacs 21.3 Dr Francis J. Wright

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.