From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: Is it a mistake to define dired-omit-mode as a minor mode? Date: Wed, 24 Mar 2010 11:31:33 +0200 Organization: JURTA Message-ID: <87iq8mcnqe.fsf@mail.jurta.org> References: <201003182241.12611.tassilo@member.fsf.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1269423743 14115 80.91.229.12 (24 Mar 2010 09:42:23 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 24 Mar 2010 09:42:23 +0000 (UTC) Cc: Leo , emacs-devel@gnu.org To: Tassilo Horn Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Mar 24 10:42:19 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1NuN6Q-0006YT-Uh for ged-emacs-devel@m.gmane.org; Wed, 24 Mar 2010 10:42:19 +0100 Original-Received: from localhost ([127.0.0.1]:49429 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NuN6Q-00071q-Et for ged-emacs-devel@m.gmane.org; Wed, 24 Mar 2010 05:42:18 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NuN5B-0006UV-Jr for emacs-devel@gnu.org; Wed, 24 Mar 2010 05:41:01 -0400 Original-Received: from [140.186.70.92] (port=52304 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NuN59-0006MW-7U for emacs-devel@gnu.org; Wed, 24 Mar 2010 05:41:00 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NuN0K-00025s-EP for emacs-devel@gnu.org; Wed, 24 Mar 2010 05:36:03 -0400 Original-Received: from smtp-out1.starman.ee ([85.253.0.3]:59762 helo=mx1.starman.ee) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NuN0K-00025k-8a for emacs-devel@gnu.org; Wed, 24 Mar 2010 05:36:00 -0400 X-Virus-Scanned: by Amavisd-New at mx1.starman.ee Original-Received: from mail.starman.ee (82.131.29.143.cable.starman.ee [82.131.29.143]) by mx1.starman.ee (Postfix) with ESMTP id CFB013F40CC; Wed, 24 Mar 2010 11:35:53 +0200 (EET) In-Reply-To: <201003182241.12611.tassilo@member.fsf.org> (Tassilo Horn's message of "Thu, 18 Mar 2010 22:41:12 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (x86_64-pc-linux-gnu) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:122596 Archived-At: >> For what it does, it seems dired-omit-mode should just be an >> interactive function. The name is so confusing that some people are >> suggesting (dired-omit-mode 1) to enable it, which actually does >> almost nothing if you put it in your .emacs file. > > The docs are pretty clear on that: > > dired-omit-mode is an interactive compiled Lisp function in `dired- > x.el'. > > (dired-omit-mode &optional ARG) > > Toggle Dired-Omit mode. > With numeric ARG, enable Dired-Omit mode if ARG is positive, disable > otherwise. Enabling and disabling is buffer-local. > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > If enabled, "uninteresting" files are not listed. > Uninteresting files are those whose filenames match regexp `dired-omit- > files', plus those ending with extensions in `dired-omit-extensions'. Maybe the docstring should say what is the preferred way to enable it in .emacs? E.g. (add-hook 'dired-mode-hook (lambda () (dired-omit-mode 1))) -- Juri Linkov http://www.jurta.org/emacs/