unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Michael Heerdegen <michael_heerdegen@web.de>
To: Phil Sainty <psainty@orcon.net.nz>
Cc: Lars Ingebrigtsen <larsi@gnus.org>, 20992@debbugs.gnu.org
Subject: bug#20992: 25.0.50; `virtual-dired': (1) doc typo, (2) unclear
Date: Fri, 03 Dec 2021 00:47:07 +0100	[thread overview]
Message-ID: <87a6himux0.fsf@web.de> (raw)
In-Reply-To: <93b6b8c57afd8e3ba0205b966d502d4a@webmail.orcon.net.nz> (Phil Sainty's message of "Fri, 03 Dec 2021 12:14:28 +1300")

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	other threads:[~2021-12-02 23:47 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-06 14:20 bug#20992: 25.0.50; `virtual-dired': (1) doc typo, (2) unclear Drew Adams
2015-07-06 17:49 ` Drew Adams
2020-03-31  0:30   ` Michael Heerdegen
2020-03-31  1:23     ` Drew Adams
2020-03-31  2:53       ` Michael Heerdegen
2021-12-02  9:48         ` Lars Ingebrigtsen
2021-12-02 14:59           ` Michael Heerdegen
2021-12-02 15:41             ` Lars Ingebrigtsen
2021-12-02 16:25               ` Michael Heerdegen
2021-12-02 16:45                 ` Lars Ingebrigtsen
2019-09-29 22:44 ` Stefan Kangas
2021-12-02 23:14 ` Phil Sainty
2021-12-02 23:47   ` Michael Heerdegen [this message]
2021-12-02 23:50   ` Phil Sainty

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=87a6himux0.fsf@web.de \
    --to=michael_heerdegen@web.de \
    --cc=20992@debbugs.gnu.org \
    --cc=larsi@gnus.org \
    --cc=psainty@orcon.net.nz \
    /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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).