TGViewer
/r/emacs /r/emacs @r_emacs · 81 subscribers
Post #28740 14
Error with dired in insert-directory in Emacs 31.1

I get this error when trying to use dired in Emacs 31.1:

insert-directory: Wrong type argument: number-or-marker-p, //DIRED-OPTIONS//

I tried stepping through it in both 31.1 and 30.2 and the arguments look the same, so it wasn't something in my config that was passing garbage. To try to eliminate possible causes, I tried evaling the 30.2 version of insert-directory, but it depends on other functions in files.el, so I just loaded that and dired works. Since I haven't heard anyone else complaining about it, I'm guessing it's something unusual about my configuration, but I was wondering whether anyone else has seen this.

https://redd.it/1x5zxyj
@r_emacs
Reddit From the emacs community on Reddit Explore this post and more from the emacs community
More from @r_emacs
  1. Oct 15, 2026Why is point not updating? Can anyone help me understand why point seems to not be being u…
  2. Oct 15, 2026General.el still relevant for Evil users? Sensible Evil and org-mode config, package recom…
  3. Oct 15, 2026Introducing Portal https://unclex.net/writing/portal https://redd.it/1x6bj3n @r_emacs
  4. Oct 15, 2026What are the recommended org-capture tools for Firefox and Chrome and how is org-protocol…
  5. Oct 14, 2026Minimal builtins-first config: Gruber Darker, Iosevka Term, Eglot + Vertico/Corfu, pdf-too…
  6. Oct 14, 2026meow-mode user ? Here are the things that I read about meow-mode 1. M-x meow-tutor 2. meow…
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →