From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Gulshan Singh Newsgroups: gmane.emacs.help Subject: Reloading whitespace mode Date: Wed, 2 Jul 2014 12:49:26 -0700 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1404330747 17474 80.91.229.3 (2 Jul 2014 19:52:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 2 Jul 2014 19:52:27 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jul 02 21:52:22 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 1X2QZp-00077v-Ac for geh-help-gnu-emacs@m.gmane.org; Wed, 02 Jul 2014 21:52:21 +0200 Original-Received: from localhost ([::1]:56229 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X2QZo-00075j-Of for geh-help-gnu-emacs@m.gmane.org; Wed, 02 Jul 2014 15:52:20 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39677) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X2QX2-0006hX-Rs for help-gnu-emacs@gnu.org; Wed, 02 Jul 2014 15:49:29 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X2QX1-0000EI-Po for help-gnu-emacs@gnu.org; Wed, 02 Jul 2014 15:49:28 -0400 Original-Received: from mail-qg0-x229.google.com ([2607:f8b0:400d:c04::229]:39589) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X2QX1-0000E7-LS for help-gnu-emacs@gnu.org; Wed, 02 Jul 2014 15:49:27 -0400 Original-Received: by mail-qg0-f41.google.com with SMTP id i50so5286927qgf.0 for ; Wed, 02 Jul 2014 12:49:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:date:message-id:subject:from:to:content-type; bh=SYm0nPHVHHVu8Ref3SpyFoFumVJqd0jHgjTUGntlpMk=; b=k0KmFITluJG4nyOlmnCEosEaO0JdU6CI64QBf7jwq7cEXfiihfG0Z3Hk2WHIOuxVRc +a2pr3Vmyxyo3RLYEQ0b6+uQbzh5QTJMKIAnvUQvFTji4gbugvGKaxZTadHtTumAZCXQ A6ds03rnl4ToJ2AjpJ9lEdandtRsr2y0gAAeWMfsKTm7KwX7zm3/NKBvoncphlQM5mCm kXjYdWjzxF4YZ0ewtqgMWsFI0MwHWCNUkAGbj5Lu9LjYHlbwW1XNIGXIXb7pz1nuGKxy dkC3NBoSleY0QaDpAmlWuztUO3T7vIgz1Cml2s7mExTK0lDTlxxUqJ4FOPtAw9Ayce9x yjJg== X-Received: by 10.140.95.50 with SMTP id h47mr53694710qge.35.1404330566945; Wed, 02 Jul 2014 12:49:26 -0700 (PDT) Original-Received: by 10.140.43.74 with HTTP; Wed, 2 Jul 2014 12:49:26 -0700 (PDT) X-Google-Sender-Auth: CO3T3XCGDOQ2Lrcg-N3Uum31hqY X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:400d:c04::229 X-Mailman-Approved-At: Wed, 02 Jul 2014 15:52:09 -0400 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 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:98517 Archived-At: I've written a function to change a whitespace mode setting: https://gist.github.com/gsingh93/31192604a134c868f2a2 In order to have that setting change take effect, I need to reload whitespace-mode. I can do that manually by doing `M-x whitespace-mode` twice, but I want to do it from elisp. Calling whitespace-mode twice in elisp just breaks the mode. How can I reload whitespace mode from elisp?