all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Drew Adams" <drew.adams@oracle.com>
To: "'Rami A'" <rami.ammari@gmail.com>, <help-gnu-emacs@gnu.org>
Subject: RE: Cycling through favored buffers
Date: Thu, 25 Apr 2013 14:32:16 -0700	[thread overview]
Message-ID: <892F4BFA73B94954AA4C5E461387D97F@us.oracle.com> (raw)
In-Reply-To: <69f8e714-2046-4726-b418-b199fe7c7df8@googlegroups.com>

> 1. How do I ignore "all directory type buffers" and limit the 
> switching to be between files only.

(cl-remove-if (lambda (buf)
                (with-current-buffer buf
                  (derived-mode-p 'dired-mode)))
              (buffer-list))
 
> 2. How do I create another list of buffers that only includes 
> directories "headers" and "source"

(cl-remove-if-not (lambda (buf)
                    (member (buffer-name buf) '("headers" "source"))
                  (buffer-list))




  reply	other threads:[~2013-04-25 21:32 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-24 22:59 Cycling through favored buffers Rami A
2013-04-25 21:32 ` Drew Adams [this message]
     [not found] ` <mailman.24641.1366925547.855.help-gnu-emacs@gnu.org>
2013-04-25 21:38   ` Rami A
2013-04-25 22:14     ` Drew Adams

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=892F4BFA73B94954AA4C5E461387D97F@us.oracle.com \
    --to=drew.adams@oracle.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=rami.ammari@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.