3

I've a problem with recentf-mode buffer in emacs. Apart from the files I opened before, its also showing all the autoload files for various packages I've installed which is cluttering the Open recent buffer with unnecessary items. Like so :- enter image description here

How can I stop emacs from doing this?

  • Provide a recipe to repro the problem, starting with emacs -Q. Otherwise it is difficult to guess what you might have done that causes the problem. – Drew Jul 20 '16 at 14:12
  • @Drew can you please elaborate on what you mean by provide a recipe ? I've started to use emacs very recently and I'm lost as to what I should do. – Chakravarthy Raghunandan Jul 20 '16 at 15:14
  • Tell us, step by step, how to reproduce what you see, starting from emacs -Q (no init file). Whatever is needed to reproduce this should be part of the recipe, and extraneous stuff should not be part of it. And tell us just what you see the is different from what you expected to see. – Drew Jul 20 '16 at 18:00
  • Here's what I did :- 1. launched emacs with emacs -Q . 2. Opened the scratch buffer and evaluated '(recentf-mode 1)' to enable open recent files. 3. executed the command recentf-open-files to launch the "Open Recent" buffer. I see the exact same result as shown in my first post. I'm confused now, are the autoloads.el files supposed to show up in the Open Recent buffer ? Is this how it works for everyone ? – Chakravarthy Raghunandan Jul 20 '16 at 19:07
  • Got it; thx. I don't know the answer to your question, though. It does seem odd that files full of autoloads would be added to your recent-files list. I don't load such files, so when I use your recipe I don't see such entries. Hopefully someone else can either tell you why seeing these is a good thing or confirm that this is not a good thing (is a bug). – Drew Jul 20 '16 at 19:49
3

Setting recentf-exclude may help you.

cf. https://www.reddit.com/r/emacs/comments/3g468d/stop_recent_files_showing_elpa_packages/

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.