+2001-10-29 Gerd Moellmann <gerd@gnu.org>
+
+ * dired-x.el (dired-omit-startup): Show ``Omit'' only in Dired
+ buffers.
+
2001-10-29 Alex Schroeder <kensanata@yahoo.com>
* progmodes/sql.el (sql-mysql): Doc change by RMS.
(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))))
+ (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'.