bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#20992: 25.0.50; `virtual-dired': (1) doc typo, (2) unclear


From: Michael Heerdegen
Subject: bug#20992: 25.0.50; `virtual-dired': (1) doc typo, (2) unclear
Date: Fri, 03 Dec 2021 00:47:07 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

Phil Sainty <psainty@orcon.net.nz> writes:

> ;; Recognise saved dired buffers.
> ;; Supports both 'ls' and 'find+ls' dired buffers.
> ;; Regexp is fairly specific, to avoid false-positives.
> (add-to-list 'magic-mode-alist
>              (cons (rx (seq (seq bos "  /" (+ not-newline) ":\n  ")
>                             (or (seq "total used in directory"
>                                      (+ not-newline) "\n" (+ space))
>                                 (seq "find " (+ not-newline) " -ls\n"
>                                      (regexp " +[0-9]+ +[0-9]+ +")))
>                             (regexp "[-d]\\(?:[-r][-w][-xs]\\)\\{3\\}")
>                             (regexp " +[0-9]+ ")))
>                    #'my-dired-virtual-mode))

I wonder if we can get this to work reliably - or if we could instead
make saving dired buffers somehow special, by silently adding some kind
of tag or so.

Michael.





reply via email to

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