From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Doug Lewan Newsgroups: gmane.emacs.help Subject: dired-mode-hook Date: Wed, 30 Apr 2014 15:48:53 +0000 Message-ID: <155DEC68569B714B86C2C7075F5EDA9892AB0A36@DAKIYA1.pegasus.local> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1398872969 28144 80.91.229.3 (30 Apr 2014 15:49:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 30 Apr 2014 15:49:29 +0000 (UTC) To: "help-gnu-emacs@gnu.org" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Apr 30 17:49:22 2014 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 1WfWl7-00048M-Do for geh-help-gnu-emacs@m.gmane.org; Wed, 30 Apr 2014 17:49:21 +0200 Original-Received: from localhost ([::1]:57502 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WfWl6-00072P-Rt for geh-help-gnu-emacs@m.gmane.org; Wed, 30 Apr 2014 11:49:20 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39576) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WfWkp-000725-9e for help-gnu-emacs@gnu.org; Wed, 30 Apr 2014 11:49:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WfWkj-0006TN-2D for help-gnu-emacs@gnu.org; Wed, 30 Apr 2014 11:49:03 -0400 Original-Received: from webmail.shubertorg.com ([207.246.209.200]:28431) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WfWki-0006Sk-Ul for help-gnu-emacs@gnu.org; Wed, 30 Apr 2014 11:48:56 -0400 Original-Received: from dakiya1.pegasus.local ([172.16.208.201]) by DAKIYA1.pegasus.local ([172.16.208.201]) with mapi id 14.01.0438.000; Wed, 30 Apr 2014 11:48:54 -0400 Thread-Topic: dired-mode-hook Thread-Index: Ac9ki7D5I21MVPXSSEGrNrSuJkou4Q== Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.0.21.202] X-detected-operating-system: by eggs.gnu.org: Windows 7 or 8 X-Received-From: 207.246.209.200 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:97482 Archived-At: There's a hook that I'd like to use with dired mode. It would position the = cursor on a preferred file in that directory. When dired-mode-hooks are called the buffer isn't yet "painted" with its co= ntents. (For example, (point-max) returns 1.) So, all those great dired-mod= e functions (like dired-goto-file, which I want) don't do anything. Am I doing something wrong? Is there some way to force the dired-mode buffe= r to have contents? Is it a bug in dired? Thanks for any help. ,Douglas Douglas Lewan Shubert Ticketing (201) 489-8600 ext 224 LISP: The most intelligent way to misuse a computer.