all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Emanuel Berg <moasen@zoho.com>
To: help-gnu-emacs@gnu.org
Subject: Re: logical not condition in ibuffer config
Date: Sun, 11 Mar 2018 21:29:39 +0100	[thread overview]
Message-ID: <864llmz77w.fsf@zoho.com> (raw)
In-Reply-To: 8xxk1ui1i4v.fsf@macross.sdf.jp

Hikaru Ichijyo wrote:

> I've been setting up ibuffer to group my
> buffer listing into categories.
> I've encountered a situation where I may want
> to make an exception to one of the rules.
> This is my config:
>
>       ibuffer-saved-filter-groups
>       (quote (("Default"
> 	       ("IRC" (mode . erc-mode))
> 	       ("Web" (mode . w3m-mode))
> 	       ("Mail & News" (or
> 			(mode . message-mode)
> 			(mode . mail-mode)
> 			(mode . gnus-group-mode)
> 			(mode . gnus-summary-mode)
> 			(mode . gnus-article-mode)))
> 	       ("Dired" (mode . dired-mode))
> 	       ("Text" (mode . text-mode))
> 	       ("HTML/CSS" (or
> 			(mode . html-mode)
> 			(mode . css-mode)))
> 	       ("Config" (or
> 			(mode . conf-space-mode)
> 			(mode . conf-unix-mode)
> 			(mode . conf-xdefaults-mode)))
> 	       ("Shell" (mode . shell-script-mode))
> 	       ("Perl" (mode . perl-mode))
> 	       ("Lisp & Emacs" (or
> 			(mode . emacs-lisp-mode)
> 			(mode . bookmark-bmenu-mode)
> 			(name . "^\\*Packages\\*$")))
> 	       ("Docs" (or
> 			(name . "^\\*info\\*$")
> 			(name . "^\\*Man "))))))
>
> I am finding that the "Lisp & Emacs" group
> catches my bbdb buffer, because it is in
> Emacs-Lisp mode, but I would rather this went
> to Default, since I rarely edit it directly.

This is not exactly Lisp but rather a common
computer data hierarchy that is expressed as
list and then parsed as configuration data by
the Lisp program... whatever.

The easiest way to do what you want is probably
to find out the priority *order* by which the
data structure gets traversed.

Then, first put the general case (all Elisp)
somewhere, only after that explicitly put the
exception/the specific case (bbdb) wherever you
want it instead, so that rule overwrites the
general case rule (which otherwise applies to
both cases).

By the way, this level of perfectionism...
start digging into Elisp today as it'll just
get worse.

-- 
underground experts united
http://user.it.uu.se/~embe8573


  reply	other threads:[~2018-03-11 20:29 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-03-11 20:17 logical not condition in ibuffer config Hikaru Ichijyo
2018-03-11 20:29 ` Emanuel Berg [this message]
2018-03-12  5:17   ` Hikaru Ichijyo
2018-03-12  5:30     ` Emanuel Berg
2018-03-12  6:27       ` Emanuel Berg
2018-03-13 17:05     ` Emanuel Berg
2018-03-12  9:12 ` Yuri Khan
     [not found] ` <mailman.10449.1520845963.27995.help-gnu-emacs@gnu.org>
2018-03-12 14:15   ` Hikaru Ichijyo
2018-03-12 18:52     ` Emanuel Berg

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=864llmz77w.fsf@zoho.com \
    --to=moasen@zoho.com \
    --cc=help-gnu-emacs@gnu.org \
    /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.