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

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

Re: Directory name to variable (dired?)


From: Tim Johnson
Subject: Re: Directory name to variable (dired?)
Date: Mon, 8 Oct 2018 07:18:26 -0800
User-agent: Mutt/1.10.0 (2018-05-17)

* Tim Johnson <tim@akwebsoft.com> [181008 07:15]:
> * Drew Adams <drew.adams@oracle.com> [181007 17:59]:
> > >   And I note that `default-directory is buffer local, so my variable
> > >   assignment must be made while I am still in dired.
> > 
> > It is buffer-local, but it is available in any buffer.
>   To determine if a buffer is a dired buffer, it seems that I can
>   verify that by evaluating `dired-omit-mode 
> 
>   Is there a more idiomatic way to do so?
  Duh! Asked and answered: Probably 
  something like (eq (major-mode) "dired-mode") ;; untested
  thanks to everyone, good thread
-- 
Tim Johnson
http://www.tj49.com



reply via email to

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