all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Is it a mistake to define dired-omit-mode as a minor mode?
@ 2010-03-18 20:37 Leo
  2010-03-18 21:41 ` Tassilo Horn
  0 siblings, 1 reply; 6+ messages in thread
From: Leo @ 2010-03-18 20:37 UTC (permalink / raw)
  To: emacs-devel

Hi there,

For what it does, it seems dired-omit-mode should just be an interactive
function. The name is so confusing that some people are suggesting
(dired-omit-mode 1) to enable it, which actually does almost nothing if
you put it in your .emacs file.

Leo





^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Is it a mistake to define dired-omit-mode as a minor mode?
  2010-03-18 20:37 Is it a mistake to define dired-omit-mode as a minor mode? Leo
@ 2010-03-18 21:41 ` Tassilo Horn
  2010-03-18 21:48   ` Lennart Borgman
  2010-03-24  9:31   ` Juri Linkov
  0 siblings, 2 replies; 6+ messages in thread
From: Tassilo Horn @ 2010-03-18 21:41 UTC (permalink / raw)
  To: emacs-devel; +Cc: Leo

On Thursday 18 March 2010 21:37:46 Leo wrote:

Hi!
 
> For what it does, it seems dired-omit-mode should just be an
> interactive function. The name is so confusing that some people are
> suggesting (dired-omit-mode 1) to enable it, which actually does
> almost nothing if you put it in your .emacs file.

The docs are pretty clear on that:

dired-omit-mode is an interactive compiled Lisp function in `dired-
x.el'.

(dired-omit-mode &optional ARG)

Toggle Dired-Omit mode.
With numeric ARG, enable Dired-Omit mode if ARG is positive, disable
otherwise.  Enabling and disabling is buffer-local.
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
If enabled, "uninteresting" files are not listed.
Uninteresting files are those whose filenames match regexp `dired-omit-
files', plus those ending with extensions in `dired-omit-extensions'.

Bye,
Tassilo




^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Is it a mistake to define dired-omit-mode as a minor mode?
  2010-03-18 21:41 ` Tassilo Horn
@ 2010-03-18 21:48   ` Lennart Borgman
  2010-03-19  6:52     ` Tassilo Horn
  2010-03-24  9:31   ` Juri Linkov
  1 sibling, 1 reply; 6+ messages in thread
From: Lennart Borgman @ 2010-03-18 21:48 UTC (permalink / raw)
  To: Tassilo Horn; +Cc: Leo, emacs-devel

On Thu, Mar 18, 2010 at 10:41 PM, Tassilo Horn <tassilo@member.fsf.org> wrote:
> On Thursday 18 March 2010 21:37:46 Leo wrote:
>
> Hi!
>
>> For what it does, it seems dired-omit-mode should just be an
>> interactive function. The name is so confusing that some people are
>> suggesting (dired-omit-mode 1) to enable it, which actually does
>> almost nothing if you put it in your .emacs file.
>
> The docs are pretty clear on that:
>
> dired-omit-mode is an interactive compiled Lisp function in `dired-
> x.el'.
>
> (dired-omit-mode &optional ARG)
>
> Toggle Dired-Omit mode.
> With numeric ARG, enable Dired-Omit mode if ARG is positive, disable
> otherwise.  Enabling and disabling is buffer-local.
>            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> If enabled, "uninteresting" files are not listed.
> Uninteresting files are those whose filenames match regexp `dired-omit-
> files', plus those ending with extensions in `dired-omit-extensions'.


Is dired-omit-mode and cousine options something we forgot to autoload, or?




^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Is it a mistake to define dired-omit-mode as a minor mode?
  2010-03-18 21:48   ` Lennart Borgman
@ 2010-03-19  6:52     ` Tassilo Horn
  0 siblings, 0 replies; 6+ messages in thread
From: Tassilo Horn @ 2010-03-19  6:52 UTC (permalink / raw)
  To: emacs-devel

On Thursday 18 March 2010 22:48:58 Lennart Borgman wrote:

> > dired-omit-mode is an interactive compiled Lisp function in `dired-
> > x.el'.
> > 
> > (dired-omit-mode &optional ARG)
> > 
> > Toggle Dired-Omit mode.
> > With numeric ARG, enable Dired-Omit mode if ARG is positive,
> > disable otherwise.  Enabling and disabling is buffer-local.
> >            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> > If enabled, "uninteresting" files are not listed.
> > Uninteresting files are those whose filenames match regexp
> > `dired-omit- files', plus those ending with extensions in
> > `dired-omit-extensions'.
> 
> Is dired-omit-mode and cousine options something we forgot to
> autoload, or?

It's in dired-x.el.  I don't know if there should be autoloads for such 
addons.

Bye,
Tassilo




^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Is it a mistake to define dired-omit-mode as a minor mode?
  2010-03-18 21:41 ` Tassilo Horn
  2010-03-18 21:48   ` Lennart Borgman
@ 2010-03-24  9:31   ` Juri Linkov
  2010-03-25  7:14     ` Juri Linkov
  1 sibling, 1 reply; 6+ messages in thread
From: Juri Linkov @ 2010-03-24  9:31 UTC (permalink / raw)
  To: Tassilo Horn; +Cc: Leo, emacs-devel

>> For what it does, it seems dired-omit-mode should just be an
>> interactive function. The name is so confusing that some people are
>> suggesting (dired-omit-mode 1) to enable it, which actually does
>> almost nothing if you put it in your .emacs file.
>
> The docs are pretty clear on that:
>
> dired-omit-mode is an interactive compiled Lisp function in `dired-
> x.el'.
>
> (dired-omit-mode &optional ARG)
>
> Toggle Dired-Omit mode.
> With numeric ARG, enable Dired-Omit mode if ARG is positive, disable
> otherwise.  Enabling and disabling is buffer-local.
>             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> If enabled, "uninteresting" files are not listed.
> Uninteresting files are those whose filenames match regexp `dired-omit-
> files', plus those ending with extensions in `dired-omit-extensions'.

Maybe the docstring should say what is the preferred way to enable it
in .emacs?  E.g. (add-hook 'dired-mode-hook (lambda () (dired-omit-mode 1)))

-- 
Juri Linkov
http://www.jurta.org/emacs/




^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Is it a mistake to define dired-omit-mode as a minor mode?
  2010-03-24  9:31   ` Juri Linkov
@ 2010-03-25  7:14     ` Juri Linkov
  0 siblings, 0 replies; 6+ messages in thread
From: Juri Linkov @ 2010-03-25  7:14 UTC (permalink / raw)
  To: Tassilo Horn; +Cc: Leo, emacs-devel

> Maybe the docstring should say what is the preferred way to enable it
> in .emacs?  E.g. (add-hook 'dired-mode-hook (lambda () (dired-omit-mode 1)))

=== modified file 'lisp/dired-x.el'
--- lisp/dired-x.el	2010-01-13 08:35:10 +0000
+++ lisp/dired-x.el	2010-03-25 07:14:18 +0000
@@ -163,7 +163,13 @@ (define-minor-mode dired-omit-mode
 otherwise.  Enabling and disabling is buffer-local.
 If enabled, \"uninteresting\" files are not listed.
 Uninteresting files are those whose filenames match regexp `dired-omit-files',
-plus those ending with extensions in `dired-omit-extensions'."
+plus those ending with extensions in `dired-omit-extensions'.
+
+To enable omitting in every Dired buffer, you can put in your ~/.emacs
+
+  (add-hook 'dired-mode-hook (lambda () (dired-omit-mode 1)))
+
+See Info node `(dired-x) Omitting Variables' for more information."
   :group 'dired-x
   (if dired-omit-mode
       ;; This will mention how many lines were omitted:

-- 
Juri Linkov
http://www.jurta.org/emacs/




^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2010-03-25  7:14 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-18 20:37 Is it a mistake to define dired-omit-mode as a minor mode? Leo
2010-03-18 21:41 ` Tassilo Horn
2010-03-18 21:48   ` Lennart Borgman
2010-03-19  6:52     ` Tassilo Horn
2010-03-24  9:31   ` Juri Linkov
2010-03-25  7:14     ` Juri Linkov

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.