[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Magic file names

From: Markus Triska
Subject: Magic file names
Date: Fri, 12 Jan 2007 23:30:08 +0100

Here is a simple file handler that delegates all operations:

(defun trivial-file-handler (operation &rest args)
  (let ((inhibit-file-name-handlers
         (cons 'trivial-file-handler
               (and (eq inhibit-file-name-operation operation)
        (inhibit-file-name-operation operation))
    (apply operation args)))

After associating it to all files using

(add-to-list 'file-name-handler-alist '("" . trivial-file-handler))

, many subsequent commands fail.  M-$ for ispell-word anywhere gives:

   Failure to create stdio stream for

A similar error occurs with M-; for comment-dwim.

This is with the latest CVS version; it works in Emacs 21.4.1.

All the best,
Markus Triska

reply via email to

[Prev in Thread] Current Thread [Next in Thread]