emacs-devel
[Top][All Lists]
Advanced

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

address@hidden: dired-virtual-mode doc]


From: Richard Stallman
Subject: address@hidden: dired-virtual-mode doc]
Date: Sat, 21 Apr 2007 20:46:58 -0400

Would someone please install this?

------- Start of forwarded message -------
X-Spam-Status: No, score=0.0 required=5.0 tests=UNPARSEABLE_RELAY 
        autolearn=failed version=3.1.0
From: address@hidden (Johan =?utf-8?Q?Bockg=C3=A5rd?=)
To: address@hidden
Date: Sat, 21 Apr 2007 16:56:14 +0200
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Subject: dired-virtual-mode doc


The doc string for dired-virtual-mode speaks about the nonexistent
variable `buffer-contents-mode-alist'. Also, the regexp is wrong (the
"/?+" part) and a bunch of backslashes are missing.


2007-04-21  Johan Bockgård  <address@hidden>

        * dired-x.el (dired-virtual-mode): Doc fix.


*** dired-x.el  07 Apr 2007 00:27:05 +0200      1.78
- --- dired-x.el        21 Apr 2007 11:39:53 +0200      
***************
*** 790,810 ****
      (revert-buffer)))
  
  ;; A zero-arg version of dired-virtual.
- - ;; You need my modified version of set-auto-mode for the
- - ;; `buffer-contents-mode-alist'.
- - ;; Or you use infer-mode.el and infer-mode-alist, same syntax.
  (defun dired-virtual-mode ()
    "Put current buffer into Virtual Dired mode (see `dired-virtual').
! Useful on `buffer-contents-mode-alist' (which see) with the regexp
  
!     \"^  \\(/[^ /]+\\)/?+:$\"
  
  to put saved dired buffers automatically into Virtual Dired mode.
  
! Also useful for `auto-mode-alist' (which see) like this:
  
!   \(setq auto-mode-alist (cons '(\"[^/]\\.dired\\'\" . dired-virtual-mode)
!                               auto-mode-alist)\)"
    (interactive)
    (dired-virtual (dired-virtual-guess-dir)))
  
- --- 790,807 ----
      (revert-buffer)))
  
  ;; A zero-arg version of dired-virtual.
  (defun dired-virtual-mode ()
    "Put current buffer into Virtual Dired mode (see `dired-virtual').
! Useful on `magic-mode-alist' with the regexp
  
!     \"^  \\\\(/[^ /]+\\\\)+/?:$\"
  
  to put saved dired buffers automatically into Virtual Dired mode.
  
! Also useful for `auto-mode-alist' like this:
  
!   (add-to-list 'auto-mode-alist
!                '(\"[^/]\\\\.dired\\\\'\" . dired-virtual-mode))"
    (interactive)
    (dired-virtual (dired-virtual-guess-dir)))
  

- -- 
Johan Bockgård


_______________________________________________
emacs-pretest-bug mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug
------- End of forwarded message -------




reply via email to

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