From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.help Subject: RE: dired omit mode Date: Mon, 3 Dec 2012 14:42:12 -0800 Message-ID: References: <2601891.pLmpvRqmRa@horus> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1354574545 14758 80.91.229.3 (3 Dec 2012 22:42:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 3 Dec 2012 22:42:25 +0000 (UTC) To: "'Florian Lindner'" , Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Dec 03 23:42:38 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Tfeij-0004UF-B3 for geh-help-gnu-emacs@m.gmane.org; Mon, 03 Dec 2012 23:42:37 +0100 Original-Received: from localhost ([::1]:44938 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TfeiX-00062l-J9 for geh-help-gnu-emacs@m.gmane.org; Mon, 03 Dec 2012 17:42:25 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:58066) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TfeiR-00062e-9H for help-gnu-emacs@gnu.org; Mon, 03 Dec 2012 17:42:21 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TfeiP-0001RT-Mh for help-gnu-emacs@gnu.org; Mon, 03 Dec 2012 17:42:19 -0500 Original-Received: from aserp1040.oracle.com ([141.146.126.69]:43770) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TfeiP-0001QX-H1 for help-gnu-emacs@gnu.org; Mon, 03 Dec 2012 17:42:17 -0500 Original-Received: from acsinet21.oracle.com (acsinet21.oracle.com [141.146.126.237]) by aserp1040.oracle.com (Sentrion-MTA-4.2.2/Sentrion-MTA-4.2.2) with ESMTP id qB3MgEPE016165 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 3 Dec 2012 22:42:15 GMT Original-Received: from acsmt358.oracle.com (acsmt358.oracle.com [141.146.40.158]) by acsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id qB3MgE6Z023778 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 3 Dec 2012 22:42:14 GMT Original-Received: from abhmt103.oracle.com (abhmt103.oracle.com [141.146.116.55]) by acsmt358.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id qB3MgEFG011203; Mon, 3 Dec 2012 16:42:14 -0600 Original-Received: from dradamslap1 (/130.35.178.8) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 03 Dec 2012 14:42:13 -0800 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <2601891.pLmpvRqmRa@horus> Thread-Index: Ac3RpFvi198Nr4PpRiSGicWTMRpFjAAAGmbw X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 X-Source-IP: acsinet21.oracle.com [141.146.126.237] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 141.146.126.69 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 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-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:88035 Archived-At: > I want to have dot-files (.*) omitted: > > dired-omit-files is a variable defined in `dired-x.el'. > Its value is "^\\.?#\\|^\\.$\\|^\\.\\.$" > > Isn't the first regular expression for matching dot-files? No, ^\\.?# matches a file name that begins with either `#' or `.#', that is, an autosave file or a lock file. The other two parts match file names `.' and `..'. `C-h v dired-omit-files' tells you this: The default is to omit `.', `..', auto-save files and lock files. > Why are they still displayed when omit-mode ist active? See above. Try this value instead: ^#\|^[.].* - it should match all dot files (including lock files), the directories `.' and `..', and autosave files. > Another minor question: I've not loaded dired-x. Was it > pulled into from dired+ ? Yes. Dired+ has this code: (require 'dired) (require 'dired-aux) (require 'dired-x nil t) The last sexp means that Emacs tries to load Dired-X if it can find it, but no error is raised if it cannot be loaded.