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

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

Re: "Omit" minor mode indicator in modeline of non-Dired buffers


From: Gerd Moellmann
Subject: Re: "Omit" minor mode indicator in modeline of non-Dired buffers
Date: 29 Oct 2001 12:41:25 +0100
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1.50

Samuel Padgett <spadgett1@nc.rr.com> writes:

> If I use customize to enable `dired-omit-files-p' (from the Dired-X
> group), I always see "Omit" in the modeline, even in non-Dired
> buffers.  Granted, this is a global setting, but shouldn't users only
> see the string in Dired modelines since the option only affects Dired?

Thanks, Samuel.  Does this fix it for you?

*** dired-x.el  2001/10/29 11:33:49     1.41
--- dired-x.el  2001/10/29 11:37:25
***************
*** 510,516 ****
  (defun dired-omit-startup ()
    (or (assq 'dired-omit-files-p minor-mode-alist)
        (setq minor-mode-alist
!             (append '((dired-omit-files-p " Omit")) minor-mode-alist))))
  
  (defun dired-omit-toggle (&optional flag)
    "Toggle omitting files matching `dired-omit-files' and 
`dired-omit-extensions'.
--- 510,519 ----
  (defun dired-omit-startup ()
    (or (assq 'dired-omit-files-p minor-mode-alist)
        (setq minor-mode-alist
!             (append '((dired-omit-files-p
!                      (:eval (if (eq major-mode 'dired-mode)
!                                 " Omit" ""))))
!                   minor-mode-alist))))
  
  (defun dired-omit-toggle (&optional flag)
    "Toggle omitting files matching `dired-omit-files' and 
`dired-omit-extensions'.



reply via email to

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