Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[dired-filter] dired-filter-group-mode breaks batch byte compilation #196

Open
ksqsf opened this issue Nov 29, 2022 · 4 comments
Open

[dired-filter] dired-filter-group-mode breaks batch byte compilation #196

ksqsf opened this issue Nov 29, 2022 · 4 comments
Labels

Comments

@ksqsf
Copy link

ksqsf commented Nov 29, 2022

In a directory where there are a number of .el files, mark them, and then press B to byte-compile them.

Expected behavior: Produce a number of .elc files corresponding to each marked .el file.

Actual behavior: Byte-compile the first marked file again and again infinitely.

My dired-filter config is as follows

(use-package dired-filter
  :after (dired)
  :hook ((dired-mode . dired-filter-group-mode))
  :config
  (define-key dired-mode-map "/" dired-filter-map))

Other information:

  • Emacs version: 29.0.60 (I can confirm batch compilation works without dired-filter-group-mode)
  • Dired-filter version: 20221127.1247 from MELPA
@Fuco1
Copy link
Owner

Fuco1 commented Mar 16, 2023

I tried this on Emacs 30 (snapshot) and can't reproduce the issue. Is there any other details you can share? For example what are your filters? Maybe there is some bug in the filtering process which would cause infinite loop.

@ksqsf
Copy link
Author

ksqsf commented Mar 16, 2023

My entire config for dired-filter is as follows. The bug can be reproduced using emacs -q + this config.

(use-package dired-filter
  :after (dired)
  :hook ((dired-mode . dired-filter-group-mode)
         (dired-mode . dired-filter-mode))
  :config
  (define-key dired-mode-map "/" dired-filter-map)
  (setq dired-filter-group-saved-groups
        '(("default"
           ("Git"
            (directory . ".git")
            (file . ".gitignore"))
           ("Directory"
            (directory))
           ("PDF"
            (extension . "pdf"))
           ("LaTeX"
            (extension "tex" "bib"))
           ("Code"
            (extension "rs" "c" "cpp" "h" "hpp" "cc" "rb" "py" "el" "html" "js" "css" "jl" "rs" "m" "v" "hs" "lhs" "pl"))
           ("Text"
            (extension "md" "rst" "txt"))
           ("Org"
            (extension "org"))
           ("Archives"
            (extension "zip" "rar" "tar" "gz" "bz2" "xz"))
           ("Images"
            (extension "jpg" "jpeg" "webp" "png" "bmp" "gif" "tiff" "xcf"))))))

@Fuco1
Copy link
Owner

Fuco1 commented Mar 16, 2023

With your config I can reproduce this on snapshot.

@Fuco1
Copy link
Owner

Fuco1 commented Mar 16, 2023

Actually I can reproduce it even on Emacs 28. It has to do with dired-byte-compile "refreshing" the buffer, dired-filter reordering the lines and markers moving around :/ This will be very hard to fix.

@Fuco1 Fuco1 added the bug label Mar 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Backlog
Development

No branches or pull requests

2 participants