[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: in dired hit v on a .zip archive
From: |
Kevin Rodgers |
Subject: |
Re: in dired hit v on a .zip archive |
Date: |
Tue, 13 Apr 2004 17:02:29 -0600 |
User-agent: |
Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:0.9.4.1) Gecko/20020406 Netscape6/6.2.2 |
Dan Jacobson wrote:
> Well, what is it going to be for all of these, yoo hoo, oh father of
> free software? Strict RET and v divided, like Kevin wants, or v=RET
> muddled, like I seem to maybe still want?
Here's what RMS wrote to me regarding my patch:
| This change would not achieve its aim. view-file on a Dired buffer
| does nothing except switch-to-buffer, because Dired mode is a special
| mode:
|
| (interactive "fView file: ")
| (unless (file-exists-p file) (error "%s does not exist" file))
| (let ((had-a-buf (get-file-buffer file))
| (buffer (find-file-noselect file)))
| (if (eq (with-current-buffer buffer
| (get major-mode 'mode-class))
| 'special)
| (progn
| (switch-to-buffer buffer)
| (message "Not using View mode because the major mode is special"))
|
| This recognizes that using view-mode on a directory listing is not
| very useful. The code should do what it does now.
--
Kevin Rodgers