From: "Stefan Monnier" <monnier+gnu.emacs.help/news/@flint.cs.yale.edu>
Subject: Re: Using custom as a type checker:- ramble
Date: 26 Mar 2003 14:14:10 -0500 [thread overview]
Message-ID: <5l4r5q9bzx.fsf@rum.cs.yale.edu> (raw)
In-Reply-To: vfwuim6p36.fsf@rpc71.cs.man.ac.uk
> > What I would much rather have is a way to load a normal
> > .emacs and automatically have all the `setq's checked as
> > above. The checking could also include obsolescence and
> > things like that.
>
> > I.e. I don't want to change the .emacs code at all, but I'd
> > like to have a more-or-less generic way to add helpful
> > analysis of the code so as to give useful information to the
> > user about suspicious customizations.
> Well I would agree that this would be preferable.
> What worries me, though, is the complexity of this task. I don't know
> about you, but my .emacs (and other files that I call from .emacs) is
> huge, and often complex, so interpreting this would be complex. Adding
> a "custom-setq" function would potentially be very simple.
It should be possible to get the desired result without implementing
an elisp interpreter in elisp, but instead by temporarily rebinding
`setq' as a macro (and things like that).
Another alternative is to put the checking into the byte-compiler
(which already takes care of traversing elisp code) and then
byte-compile the .emacs file (not for speed but for sanity checks).
This might be the best option.
Stefan
next prev parent reply other threads:[~2003-03-26 19:14 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-03-25 18:22 Using custom as a type checker:- ramble Phillip Lord
2003-03-26 16:17 ` Stefan Monnier
2003-03-26 16:59 ` Phillip Lord
2003-03-26 19:14 ` Stefan Monnier [this message]
2003-03-27 10:25 ` Phillip Lord
2003-03-27 16:32 ` Stefan Monnier
2003-03-27 17:11 ` Phillip Lord
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=5l4r5q9bzx.fsf@rum.cs.yale.edu \
--to=monnier+gnu.emacs.help/news/@flint.cs.yale.edu \
/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.
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).