help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: dired-mode-hook


From: Eli Zaretskii
Subject: Re: dired-mode-hook
Date: Wed, 30 Apr 2014 19:50:46 +0300

> From: Doug Lewan <dougl@shubertticketing.com>
> Date: Wed, 30 Apr 2014 15:48:53 +0000
> 
> 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 
> contents. (For example, (point-max) returns 1.) So, all those great 
> dired-mode 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 buffer 
> to have contents? Is it a bug in dired?

I think you want dired-initial-position-hook instead.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]