all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Diane Murray <disumu@x3y2z1.net>
To: emacs-devel@gnu.org
Subject: url-dired.el requires w3
Date: Wed, 21 Nov 2007 04:33:13 +0100	[thread overview]
Message-ID: <87zlx8p91i.fsf@spargel.x3y2z1.net> (raw)

(url-retrieve-synchronously "ftp://ftp.gnu.org/") opens a dired buffer
in `url-dired-minor-mode'.  Pressing RET on a file there calls
`url-dired-find-file', yet url-dired-find-file uses `w3-fetch' and
`w3-open-local' which are not part of Emacs.  The following patch
changes it to use `find-file'.  w3 has its own w3-dired.el file, so
users of w3 will still have that functionality.


	* url-dired.el: Don't require w3-fetch and w3-open-local.
	(url-dired-find-file): Use `find-file'.  Doc fix.
	(url-dired-find-file-mouse, url-dired-minor-mode): Doc fix.


Index: url-dired.el
===================================================================
RCS file: /cvsroot/emacs/emacs/lisp/url/url-dired.el,v
retrieving revision 1.10.2.1
diff -u -r1.10.2.1 url-dired.el
--- url-dired.el	25 Jul 2007 04:18:22 -0000	1.10.2.1
+++ url-dired.el	21 Nov 2007 03:16:55 -0000
@@ -24,8 +24,6 @@
 
 ;;; Code:
 
-(autoload 'w3-fetch "w3")
-(autoload 'w3-open-local "w3")
 (autoload 'dired-get-filename "dired")
 
 (defvar url-dired-minor-mode-map
@@ -41,22 +39,19 @@
 (make-variable-buffer-local 'url-dired-minor-mode)
 
 (defun url-dired-find-file ()
-  "In dired, visit the file or directory named on this line, using Emacs-W3."
+  "In dired, visit the file or directory named on this line."
   (interactive)
   (let ((filename (dired-get-filename)))
-    (cond ((string-match "/\\(.*@.*\\):\\(/.*\\)" filename)
-	   (w3-fetch (concat "file://" (match-string 1 filename) (match-string 2 filename))))
-	  (t
-	   (w3-open-local filename)))))
+    (find-file filename)))
 
 (defun url-dired-find-file-mouse (event)
-  "In dired, visit the file or directory name you click on, using Emacs-W3."
+  "In dired, visit the file or directory name you click on."
   (interactive "@e")
   (mouse-set-point event)
   (url-dired-find-file))
 
 (defun url-dired-minor-mode (&optional arg)
-  "Minor mode for directory browsing with Emacs-W3."
+  "Minor mode for directory browsing."
   (interactive "P")
   (cond
    ((null arg)

             reply	other threads:[~2007-11-21  3:33 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-21  3:33 Diane Murray [this message]
2007-11-21 14:54 ` url-dired.el requires w3 Stefan Monnier
2007-11-21 17:17   ` Diane Murray
2007-11-21 18:15     ` Stefan Monnier
2007-11-24 16:25       ` Diane Murray
2007-11-22  2:26 ` Richard Stallman
2007-11-25  1:32   ` Diane Murray
2007-11-28  8:28 ` Glenn Morris

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87zlx8p91i.fsf@spargel.x3y2z1.net \
    --to=disumu@x3y2z1.net \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.