From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Joost Kremers Newsgroups: gmane.emacs.help Subject: Re: setting the mode of a buffer Date: 7 Mar 2014 08:47:54 GMT Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1394182209 27576 80.91.229.3 (7 Mar 2014 08:50:09 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 7 Mar 2014 08:50:09 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Mar 07 09:50:19 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WLqTy-00050J-Ff for geh-help-gnu-emacs@m.gmane.org; Fri, 07 Mar 2014 09:50:18 +0100 Original-Received: from localhost ([::1]:35303 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WLqTy-0007Cg-5I for geh-help-gnu-emacs@m.gmane.org; Fri, 07 Mar 2014 03:50:18 -0500 Original-Path: usenet.stanford.edu!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 20 Original-X-Trace: individual.net FBnilJ8kWennVi2Srh76zQK3yi50Wp8BYuAmkS9waImK4uFRyT Cancel-Lock: sha1:NT1274wYmrfaQuCF6dG592yQnDQ= Mail-Copies-To: nobody X-Editor: Emacs of course! User-Agent: slrn/pre1.0.0-18 (Linux) Original-Xref: usenet.stanford.edu gnu.emacs.help:204017 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:96287 Archived-At: lee wrote: > Perhaps I´m going all wrong about this and there is a better way to > reload a mode? It's possible you don't need to reload the mode at all. This is Lisp, after all, not C. If you change a function definition, you only need to eval it (eval-defun, bound to C-M-x in emacs-lisp-mode), or you can recompile the entire file. If you change a defvar, eval'ing that won't load the new value, but you can simply use setq to set the new value. IME it's hardly never necessary to actually unload a feature and then reload it. -- Joost Kremers joostkremers@fastmail.fm Selbst in die Unterwelt dringt durch Spalten Licht EN:SiS(9)