all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Juri Linkov <juri@jurta.org>
Cc: emacs-devel@gnu.org
Subject: Re: desktop.el and minor modes
Date: Tue, 08 Jun 2004 11:02:55 +0300	[thread overview]
Message-ID: <87ise28olt.fsf@mail.jurta.org> (raw)
In-Reply-To: <40C56181.2090602@math.ku.dk> (Lars Hansen's message of "Tue, 08 Jun 2004 08:49:37 +0200")

Lars Hansen <larsh@math.ku.dk> writes:
> I don't see the problem. dired-omit-files-p was buffer-local before my
> changes just as dired-omit-mode is now.
> According to my test (with vanilla Emacs 21.2 and vanilla CVS Emacs),
> things work the same way when dired-omit-files-p is set in .emacs:
> With the following two lines in .emacs
>
>   (require 'dired-x)
>   (setq-default dired-omit-files-p t)
>
> omit mode is turned on globally. Observe that setq won't work.

It doesn't work when dired-omit-files-p is saved in .emacs by customize.
But seems this is a problem of customize: it can't restore variable aliases.

For example, try in a new Emacs session:

(progn
 (custom-set-variables '(dired-omit-files-p t))
 (require 'dired-x)
 dired-omit-files-p)

Returns: nil

And the new `dired-omit-mode' is not a customizable variable
anymore (like `dired-omit-files-p' was before) because it is
defined without `:global t'.  This means that users can't customize
this variable and should write the code in .emacs to toggle it
buffer-locally in the dired mode hook.

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

  reply	other threads:[~2004-06-08  8:02 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-06-05 17:59 desktop.el and minor modes Lars Hansen
2004-06-05 18:03 ` David Kastrup
2004-06-05 18:14   ` Lars Hansen
2004-06-05 18:47 ` Juri Linkov
2004-06-07  8:09 ` Juri Linkov
2004-06-08  6:49   ` Lars Hansen
2004-06-08  8:02     ` Juri Linkov [this message]
2004-06-08 16:10       ` Lars Hansen
2004-06-08 18:43         ` Juri Linkov
2004-06-08 19:24           ` Lars Hansen
2004-06-08 20:11             ` Juri Linkov
2004-06-08 20:22               ` Lars Hansen
2004-06-08 20:32   ` Richard Stallman
  -- strict thread matches above, loose matches on Subject: below --
2004-05-30 20:11 Juri Linkov
2004-05-31 10:20 ` Lars Hansen
2004-05-31 13:16   ` Lars Hansen
2004-05-31 13:52     ` Juri Linkov
2004-05-31 16:38       ` Lars Hansen
2004-05-31 19:26         ` Miles Bader
2004-05-31 21:22           ` Lars Hansen
2004-05-31 13:52   ` Juri Linkov
2004-05-31 21:48     ` Lars Hansen
     [not found]       ` <87vfici4md.fsf@mail.jurta.org>
2004-06-01  6:22         ` Lars Hansen
2004-06-01 16:34           ` Juri Linkov
2004-06-02  5:50             ` Lars Hansen
2004-06-05  1:05               ` Juri Linkov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87ise28olt.fsf@mail.jurta.org \
    --to=juri@jurta.org \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.