From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Emanuel Berg Newsgroups: gmane.emacs.help Subject: Re: logical not condition in ibuffer config Date: Sun, 11 Mar 2018 21:29:39 +0100 Organization: Aioe.org NNTP Server Message-ID: <864llmz77w.fsf@zoho.com> References: <8xxk1ui1i4v.fsf@macross.sdf.jp> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1520800105 10961 195.159.176.226 (11 Mar 2018 20:28:25 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 11 Mar 2018 20:28:25 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Mar 11 21:28:21 2018 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ev7Zr-0002js-Ur for geh-help-gnu-emacs@m.gmane.org; Sun, 11 Mar 2018 21:28:20 +0100 Original-Received: from localhost ([::1]:55525 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ev7bu-0000Eu-Tj for geh-help-gnu-emacs@m.gmane.org; Sun, 11 Mar 2018 16:30:26 -0400 Original-Path: usenet.stanford.edu!goblin1!goblin2!goblin.stu.neva.ru!aioe.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 65 Original-NNTP-Posting-Host: UHWYWQF2IuZrSKObhXEbig.user.gioia.aioe.org Original-X-Complaints-To: abuse@aioe.org Mail-Copies-To: never Cancel-Lock: sha1:2rC4FT3Vd31NTpAZNABxGtj+XNw= X-Notice: Filtered by postfilter v. 0.8.3 Original-Xref: usenet.stanford.edu gnu.emacs.help:222055 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:116173 Archived-At: 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