all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Kevin Rodgers <ihs_4664@yahoo.com>
Subject: Re: clearing all lisp definitions
Date: Wed, 01 Mar 2006 11:39:11 -0700	[thread overview]
Message-ID: <du4ppr$o70$1@sea.gmane.org> (raw)
In-Reply-To: <7eirr3vduk.fsf@ada2.unipv.it>

Thien-Thi Nguyen wrote:
> Dieter Wilhelm <dieter@duenenhof-wilhelm.de> writes:
> 
> 
>>Is there any function which clears all unnecessary lisp
>>definitions in the interpreter and leaves a running Emacs in a
>>state as if just started with -Q?
> 
> 
> well, you could try:
> 
> (defun those-who-do-not-study-history--- ()
>   (interactive)
>   (let ((kill-emacs-hook nil))
>     (kill-emacs "emacs -Q")))
> 
> but that's probably not completely portable, besides being overkill.
> 
> 
>>I'm tinkering around with my own mode and I'm concerned that
>>some old remaining definitions might interfere when loading a
>>modified mode file. So I'd prefer to start with a clean slate
>>(without quitting Emacs every time).
> 
> 
> you can clear out all the functions and variables whose names
> begin w/ a prefix using `mapatoms' with a function that recognizes
> those names and makes their definitions void via `fmakunbound' and
> `makunbound', respectively.

If Dieter's mode properly `provide's its own feature, M-x unload-feature
should do the trick.

-- 
Kevin Rodgers

  reply	other threads:[~2006-03-01 18:39 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.50.1140863024.5016.help-gnu-emacs@gnu.org>
2006-02-25 12:10 ` clearing all lisp definitions Thien-Thi Nguyen
2006-03-01 18:39   ` Kevin Rodgers [this message]
2006-02-25 12:41 ` John Paul Wallington
2006-02-23 21:41 Dieter Wilhelm

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='du4ppr$o70$1@sea.gmane.org' \
    --to=ihs_4664@yahoo.com \
    /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.