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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T10:12:56+00:00 2026-06-13T10:12:56+00:00

In xemacs, how do I kill buffers matching a certain pattern? I tried kill-matching-buffers,

  • 0

In xemacs, how do I kill buffers matching a certain pattern? I tried
“kill-matching-buffers”, but my xemacs doesn’t appear to have
that. What .el/.elc file do I need to load/eval-buffer to get this
function?

I’d also settle for a way to sort of filter the buffer list so I can
see just the buffers I want to delete, or get them next to each other
via sort.

  • 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-06-13T10:12:57+00:00Added an answer on June 13, 2026 at 10:12 am

    kill-matching-buffers code is as follows. You should be able to make it work with XEmacs with minimal effort.

    (defun kill-matching-buffers (regexp &optional internal-too)
      "Kill buffers whose name matches the specified REGEXP.
    The optional second argument indicates whether to kill internal buffers too."
      (interactive "sKill buffers matching this regular expression: \nP")
      (dolist (buffer (buffer-list))
        (let ((name (buffer-name buffer)))
          (when (and name (not (string-equal name ""))
                     (or internal-too (/= (aref name 0) ?\s))
                     (string-match regexp name))
            (kill-buffer-ask buffer)))))
    

    And if you need definition for dolist (don’t know if it is XEmacs), check cl-macs.el

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

Sidebar

Related Questions

I'm using XEmacs on Windows 7 installed in MacBookPro. So I don't have a
As an XEmacs user, I'm a firm believer that if you're using a powerful
I have a elisp script for Emacs that I want to do some clean
Having made the jump just recently from XEmacs to GNU Emacs, I'm really loving
I used Aquamacs so far, and I need to install and run Clojure using
I installed xemacs using macports, and then when I try to open it I
We're going to be building some J2ME apps and Java/Rails webapps which will have
seen lot of links but not able to figure out , what is M-%
What would be the best/quickest way to have a IDE-type setup when I have
I'd like to change the window/frame size of my XEmacs based on the current

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.