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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T05:18:21+00:00 2026-05-14T05:18:21+00:00

On Linux, the built-in el files are all read-only, so no problem. But on

  • 0

On Linux, the built-in el files are all read-only, so no problem.

But on MS Windows, what happens is like this:

  • I get curious about the definition of the command isearch-forward, so I type ctrl–hf isearch-forward and click on the link isearch.el from the help to get to the definition of the function.
  • While I am reading its definition, I press ctrl–h or ctrl–c many times, but I have previously set Caps Lock as another Ctrl key, so sometimes it happens that I release Caps Lock too early, in which case ctrl–h or ctrl–c becomes inserting h or c.
  • Sometimes I notice that and undo it, but sometimes I don’t notice it, and I even save them all with ctrl–xs.

What is a good way to protect the built-in el files from me on MS Windows?

  • 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-14T05:18:22+00:00Added an answer on May 14, 2026 at 5:18 am

    Change the permissions to be read-only.

    M-x find-function isearch-forward RET
    M-x dired RET
    % m . RET
    M -w RET
    

    The sequence will open up the file isearch.el, then use dired on its directory. At which point you mark all the files, and then change permissions to be read only.

    You’ll also want to do it for the sub directories. So whip up a macro and run it until you’re done.

    Starting in the lisp dired buffer (the one you created up there), go to the first file (right below . and ..), and begin:

    C-x (
    >
    RET
    % m . RET
    M -w RET
    q
    C-x )
    

    There, you have defined a macro to go to the next directory, enter it, mark all its files read only, and leave the directory. Now run it several times (20 for Emacs 23.1).

    C-u 20 C-x e RET
    

    And you’re done.

    If you have a cygwin shell, it’d be a lot easier to just do

    M-x shell
    cd c:/Program\ Files/emacs-23.1/lisp/
    chmod -R -w .
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I built wxWidgets on Linux using this command: ../configure --enable-shared --disable-debug It see results
I have some code which is built both on Windows and Linux. Linux at
I have two shared libraries in Linux that when built are identical in all
I frequently need to make many replacements within files. To solve this problem, I
I'm designing some cross platform tool, and I want to store some read only
I'm an experienced Linux programmer, familiar with POSIX, stdio.h and so on, but totally
I have some directories with a number of hidden files. One example of this
gcc 4.5.1 Fedora 14 Linux I have this static library that was build from
OS X lacks linux's strace , but it has dtrace which is supposed to
I know this issue already discussed (include there), and no one time. But, unfortunately,

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.