From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Emanuel Berg Newsgroups: gmane.emacs.help Subject: Re: About how misspelled word are displayed Date: Sat, 13 May 2017 17:07:33 +0200 Message-ID: References: <3993ee96-42e7-e597-f7d0-306003faa235@alice.it> <40f5d8bd-8956-b3fa-1818-eb3622f6ff12@alice.it> <20170512141406.GA27429@tuxteam.de> <8479790d-443e-48fc-a59b-f14a917fafab@default> <8778c766-ce0a-4b42-939d-96b0f0b49a82@default> <87efvtzrw5.fsf@gmail.com> <262055bc-44b9-4b2b-932a-52b146a5916e@default> <87shk8x2q3.fsf@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1494688097 21917 195.159.176.226 (13 May 2017 15:08:17 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 13 May 2017 15:08:17 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat May 13 17:08:13 2017 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d9YeR-0005ZT-Vr for geh-help-gnu-emacs@m.gmane.org; Sat, 13 May 2017 17:08:12 +0200 Original-Received: from localhost ([::1]:57901 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d9YeW-0004q4-0d for geh-help-gnu-emacs@m.gmane.org; Sat, 13 May 2017 11:08:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59465) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d9Ye2-0004pz-T6 for help-gnu-emacs@gnu.org; Sat, 13 May 2017 11:07:47 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d9Ydz-000254-Ma for help-gnu-emacs@gnu.org; Sat, 13 May 2017 11:07:46 -0400 Original-Received: from [195.159.176.226] (port=57740 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1d9Ydz-00023W-Fu for help-gnu-emacs@gnu.org; Sat, 13 May 2017 11:07:43 -0400 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1d9Yds-0004wo-3l for help-gnu-emacs@gnu.org; Sat, 13 May 2017 17:07:36 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: help-gnu-emacs@gnu.org Original-Lines: 28 Original-X-Complaints-To: usenet@blaine.gmane.org Mail-Copies-To: never Cancel-Lock: sha1:ClRAmioiwpLXQ/amdBkCedFWVD8= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 195.159.176.226 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.emacs.help:113020 Archived-At: Emanuel Berg wrote: > `set-variable' is interactive so you can use > it with M-x and TAB if you don't > know/remember the exact option name. Oh, `set-variable' can also be used to set local options, as in the below Elisp. (Actually, it is the only `set-variable' I have in all my Elisp. I have 238 grep hits for "setq".) (defun toggle-local-var (var) (set-variable var (not (symbol-value var)) t) ) (defun toggle-char-mode () (interactive) (toggle-local-var 'column-number-mode) ) (defun toggle-line-mode () (interactive) (toggle-local-var 'line-number-mode) ) ;; ... -- underground experts united http://user.it.uu.se/~embe8573