all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Dani Moncayo <dmoncayo@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 13583@debbugs.gnu.org
Subject: bug#13583: 24.3.50; Error when activating auto-revert-mode
Date: Tue, 29 Jan 2013 14:42:39 +0100	[thread overview]
Message-ID: <CAH8Pv0h5-Heax1872Md43W6Cdq3-y6EE_XuvAWYDj2wzUCCpJQ@mail.gmail.com> (raw)
In-Reply-To: <83boc8i2u5.fsf@gnu.org>

>> The problem with that approach is that, if I do some other
>> customization and save it
>
> ??? You just said that you "try to avoid the customize facility", so
> why in the world would you want to save your customizations??

So far I use it for face customization, exclusively.

> Instead of saving them, use the custom-set-variables function to do
> what you want, when you want.

Good idea.  I'll do it.

>> the custom facility writes _all_ current unsaved customization to
>> the custom file, therefore the customization of
>> `auto-revert-use-notify' would end up in the custom file, which is
>> not what I want, obviously.
>
> This is a misunderstanding, surely: custom-set-variables does not save
> anything.  It arranges for the variable to be customized, as if you
> used the Customize user interface.  So I don't understand how "unsaved
> customizations" and "custom file" come into play here.  Could you
> perhaps give more details about the workflow which brings you to those
> issues, including the commands you use?

In my init file, I store a file name in `custom-file' so that the
stuff that customize manages is kept separate from my stuff, i.e., the
things I've write myself in my init file.

In the custom file, I have exclusively face customizations, which I
can tweak and save whenever I want.

So, if I write a call to customize-set-faces or
customize-set-variables right in my init file, the customizations made
that way end up in a "unsaved" state, so that if I do some face
customization (using customize) and save it, the custom file receives
not only the face customization, but also the other "unsaved" ones,
which I wanted to keep out of the custom file.

>> A workaround is to fool the customize facility by marking the relevant
>> customizations as "saved" just after the call to custom-set-variables,
>> but that is an ugly hack, IMO.
>
> Why would you need to save any customizations at all?  If you want to
> customize yet another variable, add yet another custom-set-variables
> form to your .emacs, that's all.  What am I missing?

Yes, I think that's a good approach.  I'll get rid of my custom file,
and do the appropriate calls to custom-set-xxxx directly from my init
file.

Thank you.  This bug can be closed.

-- 
Dani Moncayo





  reply	other threads:[~2013-01-29 13:42 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-29 10:59 bug#13583: 24.3.50; Error when activating auto-revert-mode Dani Moncayo
2013-01-29 11:10 ` Eli Zaretskii
2013-01-29 11:34   ` Dani Moncayo
2013-01-29 12:08     ` Eli Zaretskii
2013-01-29 12:18       ` Dani Moncayo
2013-01-29 12:35         ` Eli Zaretskii
2013-01-29 13:42           ` Dani Moncayo [this message]
2013-01-29 14:22             ` Dani Moncayo
2013-01-29 15:08               ` Drew Adams
2013-01-29 15:16               ` Wolfgang Jenkner
2013-01-29 16:12                 ` Drew Adams
2013-01-29 21:25                   ` Andy Moreton
2013-01-29 22:35                     ` Drew Adams
2013-01-30 23:42                       ` Andy Moreton
2013-01-30 23:52                         ` Drew Adams
2013-01-29 17:44               ` Eli Zaretskii
2013-01-29 17:42             ` Eli Zaretskii
2013-01-29 13:44       ` Michael Heerdegen
2013-01-29 17:39         ` Eli Zaretskii
2013-01-29 18:13           ` Michael Heerdegen
2013-01-29 15:10   ` Stefan Monnier
2013-01-29 16:06     ` Michael Albinus
2013-01-29 17:48       ` Eli Zaretskii
2013-01-29 21:39         ` Stefan Monnier
2013-01-30 17:55           ` Eli Zaretskii
2013-01-30 21:02             ` Stefan Monnier
2013-01-30  7:28         ` Michael Albinus
2013-01-30 16:54           ` Eli Zaretskii
2013-01-30 19:24             ` Michael Albinus
2013-01-30 18:05       ` Dani Moncayo

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=CAH8Pv0h5-Heax1872Md43W6Cdq3-y6EE_XuvAWYDj2wzUCCpJQ@mail.gmail.com \
    --to=dmoncayo@gmail.com \
    --cc=13583@debbugs.gnu.org \
    --cc=eliz@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.