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

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

dired-mode-hook


From: Doug Lewan
Subject: dired-mode-hook
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?

Thanks for any help.

,Douglas
Douglas Lewan
Shubert Ticketing
(201) 489-8600 ext 224

LISP: The most intelligent way to misuse a computer.




reply via email to

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