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

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

Re: How to call a function on every directory change (in dired)?


From: Marc Mientki
Subject: Re: How to call a function on every directory change (in dired)?
Date: Wed, 08 Dec 2010 15:30:26 -0000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.2.9) Gecko/20100915 Thunderbird/3.1.4

Am 28.09.2010 21:04, schrieb Xah Lee:
On Sep 28, 5:55 am, Marc Mientki<mien...@nonet.com>  wrote:
Am 28.09.2010 14:37, schrieb Marc Mientki:

Maybe is defadvice on dired-find-file a solution??

Yes, I know, I talk to myself. However, this could also be interesting
to others. So I post my solution:

The advice idea was right! It works:

(defun foo ()
    (message "-->  hoho: current directory: %s" (dired-current-directory)))

(defadvice dired-find-file (after foo)
    "Call foo each time on directory entry in dired."
    (foo))

(ad-activate 'dired-find-file)

regards
Marc


Hi Marc Would you be interested To write a guest blog on my website on
this problem. Thanks.

Hello Xah!

Please do not be offended but my answer is no. I completly disagree with your Emacs and Lisp criticism and your "Emacs modernisation ideas" so I don't want support your Emacs blogs. I don't want to be associated with your point of view of Emacs.

regards
Marc



reply via email to

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