Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6357205
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T23:07:13+00:00 2026-05-24T23:07:13+00:00

There are 5 Elisp commands that can be run on an Emacs fileset, plus

  • 0

There are 5 Elisp commands that can be run on an Emacs fileset, plus the ability to run any shell command. What about all the other Emacs commands? Just to give one example, it would be nice to be able to run M-x occur on a fileset.

I know its possible to mark several files in dired and then run any Emacs command on them (is that true, or am I confused with shell commands?), but it would be very convenient to define a fileset once and then be able to use it like one single file for all kinds of text editing.

Thanks for any advice

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T23:07:14+00:00Added an answer on May 24, 2026 at 11:07 pm

    The commands that can operate on file sets are specified in the global custom variable “filesets-commands”. You can add your own commands to that list. The default value for this variable is:

    ("Isearch" multi-isearch-files
      (filesets-cmd-isearch-getargs))
     ("Isearch (regexp)" multi-isearch-files-regexp
      (filesets-cmd-isearch-getargs))
     ("Query Replace" perform-replace
      (filesets-cmd-query-replace-getargs))
     ("Query Replace (regexp)" perform-replace
      (filesets-cmd-query-replace-regexp-getargs))
     ("Grep <<selection>>" "grep"
      ("-n " filesets-get-quoted-selection " " "<<file-name>>"))
     ("Run Shell Command" filesets-cmd-shell-command
      (filesets-cmd-shell-command-getargs)))
    

    The values consist of an association list of names, functions, and an argument list (or a function that returns one) to be run on a filesets’ files. So, if you wanted to add a command that does an “occur” command on the file set, you could use the “Isearch” entry as an example to create your own new entry (that you would add to the “filesets-commands” global variable) that would look something like:

     ("Occur (regexp)" multi-occur-files-regexp
      (filesets-cmd-occur-getargs))
    

    You would need to write the “multi-occur-files-regexp” and “filesets-cmd-occur-getargs” functions (you could use the existing “multi-isearch-files-regexp” and “filesets-cmd-isearch-getargs” functions as a basis since they would be similar). The same would apply for any additional Emacs command that you wanted to add to work on file sets.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there a way to periodically run an elisp function in a long-running emacs,
I can run a shell command quickly by hitting M-! . One thing I'd
Is there an Elisp command which can return Mac, Windows, linux, etc??
Is there a builtin command to clear shell while using shell in emacs? If
Is there any way to add my own completion to an (interactive) elisp function?
I read about lexical-let's memory leak, for example here: Are there any problems with
I've found several code completion elisp packages for emacs that do code completion, but
I have a elisp script for Emacs that I want to do some clean
Is there a built-in or 3rd party elisp command to move to the matching
Is there a way to restore all escreen screens and window configurations on emacs

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.