From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: jjl@pobox.com (John J. Lee) Newsgroups: gmane.emacs.help Subject: Symbol's function definition is void: dired-omit-mode Date: Wed, 09 Aug 2006 12:42:57 +0100 Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1155123871 26435 80.91.229.2 (9 Aug 2006 11:44:31 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 9 Aug 2006 11:44:31 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Aug 09 13:44:29 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GAmU3-0005GF-DW for geh-help-gnu-emacs@m.gmane.org; Wed, 09 Aug 2006 13:44:23 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GAmU2-00023w-Pb for geh-help-gnu-emacs@m.gmane.org; Wed, 09 Aug 2006 07:44:22 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GAmTB-0001KZ-Sd for help-gnu-emacs@gnu.org; Wed, 09 Aug 2006 07:43:30 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GAmT9-0001Hj-Eb for help-gnu-emacs@gnu.org; Wed, 09 Aug 2006 07:43:29 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GAmT9-0001HX-2x for help-gnu-emacs@gnu.org; Wed, 09 Aug 2006 07:43:27 -0400 Original-Received: from [80.91.229.2] (helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1GAmXo-0004S8-Rw for help-gnu-emacs@gnu.org; Wed, 09 Aug 2006 07:48:17 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1GAmSw-00051c-JX for help-gnu-emacs@gnu.org; Wed, 09 Aug 2006 13:43:14 +0200 Original-Received: from 217.196.247.135 ([217.196.247.135]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 09 Aug 2006 13:43:14 +0200 Original-Received: from jjl by 217.196.247.135 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 09 Aug 2006 13:43:14 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-To: help-gnu-emacs@gnu.org Original-Lines: 32 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 217.196.247.135 User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (windows-nt) Cancel-Lock: sha1:NvUDMsU9qAY6G6+bDSBBj8RqLuY= X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:36569 Archived-At: Switching to emacs 22 recently, I'm getting this when using C-x d to visit a directory using dired-x. Symbol's function definition is void: dired-omit-mode The emacs 22 info pages seem quite clear that what I'm doing should work -- in fact, I copied my dired-mode-hook code straight from the info pages. Here's the relevant chunk from my .emacs: (add-hook 'dired-load-hook (function (lambda () (load "dired-x") (setq dired-omit-files (concat dired-omit-files "\\|^CVS$\\|^.cvsignore$")) (setq dired-omit-files (concat dired-omit-files "\\|\\.pyc$\\|\\.pyo$|\\.pyw$")) (setq dired-omit-files (concat dired-omit-files "\\|\\.o$\\|\\.so\\|\\.a\\|\\.lo\\|\\.la$")) ))) (add-hook 'dired-mode-hook (lambda () ;; Set dired-x buffer-local variables here. For example: (dired-omit-mode 1) )) Help! John