unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: "Drew Adams" <drew.adams@oracle.com>
To: "'Dani Moncayo'" <dmoncayo@gmail.com>, "'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 07:08:42 -0800	[thread overview]
Message-ID: <1A275841BDD6477A85CBFBE3E6201E2F@us.oracle.com> (raw)
In-Reply-To: <CAH8Pv0j+mNH4VRoJV_TmzLk1DCiiG16FwKhWMe3ZjOdDgpWcSw@mail.gmail.com>

Dani said:

> But for the record: IIUC, I that approach isn't flawless either,
> because doing face customization is pretty hard without the customize
> facility, and using customize will imply:
> 1. Do the customization in a custom buffer.
> 2. Save the customization (for getting the elisp code).
> 3. Look for the appropriate sentence in the generated custom file, and
> move it to my init file.
> 
> That is not very convenient, but fortunately I don't do face
> customization every day.

and

> 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.

That workaround is an ugly hack, OK.  But it is no more an ugly hack than the
other workarounds (yes, they are just that) that you all have been discussing,
IMO.

Michael H. is right that (a) the custom* arsenal has the tools one needs but (b)
interactive Customize itself should be expanded to provide general users with
them directly (i.e., no Lisp needed).

I do some of that in my ugly-little-hack library cus-edit+.el [*], but no doubt
someone knowing the custom* code well could do better.  There has been little
interest so far, unfortunately.  One reason is perhaps that the cus* code is
difficult to fathom.

Given the current state of what's available, I still do recommend the ugly
little hack Dani mentioned: telling customize that there has been no change to
the option (i.e., lying).

That's what the custom* code itself does.  That the names of the things involved
make it look like you are claiming that the option has been _saved_, instead of
telling customize to ignore any changes, is only a name problem - for us people.

But yes, there is room for improvement.

[*]
http://www.emacswiki.org/emacs-en/download/cus-edit%2b.el
http://www.emacswiki.org/emacs/CustomizingAndSaving#CustomizePlus






  reply	other threads:[~2013-01-29 15:08 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
2013-01-29 14:22             ` Dani Moncayo
2013-01-29 15:08               ` Drew Adams [this message]
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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=1A275841BDD6477A85CBFBE3E6201E2F@us.oracle.com \
    --to=drew.adams@oracle.com \
    --cc=13583@debbugs.gnu.org \
    --cc=dmoncayo@gmail.com \
    --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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).