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 6940105
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T12:42:37+00:00 2026-05-27T12:42:37+00:00

I wanted to run a query-replace-regexp across multiple files in emacs, and found this

  • 0

I wanted to run a query-replace-regexp across multiple files in emacs, and found this post explaining how to do it. When I tried following the directions, I got an error after entering the file wildcard.

find . \( -iname \*.vb \) -exec ls -ld \{\} \;
Unknown option "-iname"

Unfortunately, the find I’m using is from MKS Toolkit on Windows, and it doesn’t support the -iname option. I tried replacing all occurences of “iname” with “name” in my emacs lisp files, and then byte-compiling and restarting emacs. This did not solve the problem and I got exactly the same error as before. After a bit more digging, I found another command find-dired that lets you customize the find command used, so I’ve already done the search and replace with this workaround.

My question is this: Why am I still getting the -iname error, even after editing my source files, re-byte-compiling them, and restarting emacs? I’d like to find a more permanent solution for future search-and-replace across multiple files (and to satisfy my curiosity).

  • 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-27T12:42:37+00:00Added an answer on May 27, 2026 at 12:42 pm

    Change the variable find-name-arg. Run M-x customize-group find-dired, or just put (setq find-name-arg "-name") in your .emacs.

    In my version of emacs, the initial value comes from find-dired.el. Did you change and recompile that file?

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

Sidebar

Related Questions

I run this query: SHOW INDEX FROM `tbl_clients` I get back these: Table, Non_unique,
If I wanted to run a query where certain fields in my query were
Lets say when I run the following query, SELECT NAME FROM EMP; It return
This is rather a general question. If I run an SQL query and loop
I wanted to run a simple query to throw up all the rows of
This is kind of a weird question but... If I run this query in
I wanted to run 1,000 iterations of a program, so set a counter for
In a macro for Visual Studio 6, I wanted to run an external program,
I've run into a little hurdle and wanted to see if somebody could help
I just wanted some opinions from people that have run Selenium ( http://selenium.openqa.org )

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.